-
Notifications
You must be signed in to change notification settings - Fork 55
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
[TOREVIEW] Pozniakoff_Vallon #35
base: master
Are you sure you want to change the base?
Conversation
…, lorsque le transformer sera en place
…-HEIGVD-Teaching-HEIGVD-RES-2021-Labo-Java-IO into feat/filters
…h to merge it all
Fb transformer
Fb visitor
Revert "Fb visitor"
fix visitor, now pass the tests
…-HEIGVD-Teaching-HEIGVD-RES-2021-Labo-Java-IO into feat/FileNumberingFilterWriter
Feat/file numbering filter writer
Feat/utils
…terWriter Revert "Feat/file numbering filter writer"
Revert "Feat/utils"
Revert "fix visitor, now pass the tests"
fixing git
…oftEng-HEIGVD-Teaching-HEIGVD-RES-2021-Labo-Java-IO into feat/Utils
Feat/utils
… pour sort le dfs
Added the commentaries and did final check
woopsy daisy zappé des trucs
@@ -133,7 +132,18 @@ void clearOutputDirectory() throws IOException { | |||
* @throws IOException | |||
*/ | |||
void storeQuote(Quote quote, String filename) throws IOException { | |||
throw new UnsupportedOperationException("The student has not implemented this method yet."); | |||
String tmp = new String(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I detect that this code is problematic. According to the Performance (PERFORMANCE), Dm: Method invokes inefficient new String() constructor (DM_STRING_VOID_CTOR).
Creating a new java.lang.String object using the no-argument constructor wastes memory because the object so created will be functionally indistinguishable from the empty string constant "". Java guarantees that identical string constants will be represented by the same String object. Therefore, you should just use the empty string constant directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it, the string is now initialized with empty string
Please review again :) |
No description provided.