Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

properly deprecated everything #353

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rjgriffin42
Copy link
Member

No description provided.

@@ -18,6 +18,7 @@
*
* @deprecated Replaced by ROS2BehaviorTreeExecutor
*/
@Deprecated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be covered by the Javadoc, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you look at the warnings shown by the CI runner, it generates a warning for everywhere where deprecated is declared in the javadoc but not provided as an annotation.

@@ -32,7 +32,7 @@ public static double[] parseDoubleArray(String stringSource) throws IOException
StringTokenizer tokenizer = new StringTokenizer(line.replace("{", "").replace("}", "").replace(" ", "").replace(";", ""), ",");
while (tokenizer.hasMoreElements())
{
retArray.add(new Double(Double.parseDouble((String) tokenizer.nextElement())));
retArray.add(Double.valueOf(Double.parseDouble((String) tokenizer.nextElement())));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would imagine this would be sufficient?

Suggested change
retArray.add(Double.valueOf(Double.parseDouble((String) tokenizer.nextElement())));
retArray.add(Double.parseDouble((String) tokenizer.nextElement()));

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll probably shelve this PR and do anotehr pass on cleaning up deprecations. They make the build log a pain.

@@ -636,7 +637,7 @@ private void addLidarMounts(SDFSensor sensor, JointDescription scsJoint, SDFLink
}
else
{
System.err.println("Unknown noise model: " + sdfNoise.getType());
LogTools.info("Unknown noise model: " + sdfNoise.getType());
Copy link
Member

@calvertdw calvertdw Aug 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the case here, but it reminded me, careful doing this more broadly. Anything that executes as part of a Runtime shutdownHook can't use LogTools anymore, because log4j2 is one of the things that gets shutdown in that phase.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No clue, if that's the case I can cahnge it back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants