Adjust total progress based on partial task progress#111
Conversation
|
Build: listFix_2.6.0-PR111-5.exe |
ba800e8 to
b15c85f
Compare
| { | ||
| progress.setTotal(winLists.size()); | ||
| } | ||
| progress.setTotal(winLists.size()); |
There was a problem hiding this comment.
NULL_DEREFERENCE: object winLists last assigned on line 93 could be null and is dereferenced at line 94.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
| private javax.swing.JButton _cancelButton; | ||
| private javax.swing.JPanel _middlePanel; | ||
| private javax.swing.JLabel _overallLabel; | ||
| private javax.swing.JProgressBar _overallProgress; |
There was a problem hiding this comment.
UnnecessarilyFullyQualified: This fully qualified name is unambiguous to the compiler if imported.
| private javax.swing.JProgressBar _overallProgress; | |
| _taskProgress = new JProgressBar(); |
❗❗ 6 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
| File Path | Line Number |
|---|---|
| src/main/java/listfix/view/dialogs/DualProgressDialog.java | 186 |
| src/main/java/listfix/view/dialogs/DualProgressDialog.java | 184 |
| src/main/java/listfix/view/dialogs/DualProgressDialog.java | 182 |
| src/main/java/listfix/view/dialogs/DualProgressDialog.java | 181 |
| src/main/java/listfix/view/dialogs/DualProgressDialog.java | 183 |
| src/main/java/listfix/view/dialogs/DualProgressDialog.java | 187 |
Visit the Lift Web Console to find more details in your report.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
🛠 Lift Auto-fixSome of the Lift findings in this PR can be automatically fixed. You can download and apply these changes in your local project directory of your branch to review the suggestions before committing.1 # Download the patch
curl https://lift.sonatype.com/api/patch/github.com/Borewit/listFix/111.diff -o lift-autofixes.diff
# Apply the patch with git
git apply lift-autofixes.diff
# Review the changes
git diffWant it all in a single command? Open a terminal in your project's directory and copy and paste the following command: curl https://lift.sonatype.com/api/patch/github.com/Borewit/listFix/111.diff | git applyOnce you're satisfied, commit and push your changes in your project. Footnotes |
93c3200 to
ea97a2d
Compare
|
|
||
| public class DualProgressDialog extends javax.swing.JDialog | ||
| /** | ||
| * @param <T> the result type returned by this SwingWorker's doInBackground and get methods |
There was a problem hiding this comment.
MissingSummary: A summary line is required on public/protected Javadocs.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
|
|
||
| private void formWindowClosing(java.awt.event.WindowEvent evt)//GEN-FIRST:event_formWindowClosing | ||
| {//GEN-HEADEREND:event_formWindowClosing | ||
| private void formWindowClosing(java.awt.event.WindowEvent evt) |
There was a problem hiding this comment.
UnnecessarilyFullyQualified: This fully qualified name is unambiguous to the compiler if imported.
| private void formWindowClosing(java.awt.event.WindowEvent evt) | |
| public void windowClosing(WindowEvent evt) |
❗❗ 68 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
| File Path | Line Number |
|---|---|
| src/main/java/listfix/view/dialogs/DualProgressDialog.java | 122 |
| src/main/java/listfix/view/dialogs/BatchExactMatchesResultsDialog.java | 202 |
| src/main/java/listfix/view/dialogs/BatchExactMatchesResultsDialog.java | 155 |
| src/main/java/listfix/view/dialogs/BatchExactMatchesResultsDialog.java | 221 |
| src/main/java/listfix/view/dialogs/DualProgressDialog.java | 71 |
| src/main/java/listfix/view/dialogs/BatchExactMatchesResultsDialog.java | 200 |
| src/main/java/listfix/view/dialogs/DualProgressDialog.java | 113 |
| src/main/java/listfix/view/dialogs/DualProgressDialog.java | 101 |
| src/main/java/listfix/view/dialogs/BatchExactMatchesResultsDialog.java | 293 |
| src/main/java/listfix/view/dialogs/BatchExactMatchesResultsDialog.java | 168 |
Showing 10 of 68 findings. Visit the Lift Web Console to see all.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
Test Results listFix_2.6.0-PR111-5
•
•
|
Test Results listFix_2.6.0-PR111-5 1. Playlist tab-titles disappear. These 3 Tab-titles/text went blank after a while. (Two of the playlists were added from the PLD, and one playlist was added to the editor via menu • 2. Changing • 3. Changing 4. NB: Check to verify that this operation is working as intended: |
9200042 to
e31b796
Compare
|
|
||
| private void formWindowClosing(java.awt.event.WindowEvent evt)//GEN-FIRST:event_formWindowClosing | ||
| {//GEN-HEADEREND:event_formWindowClosing | ||
| private void formWindowClosing(java.awt.event.WindowEvent ignore) |
There was a problem hiding this comment.
UnnecessarilyFullyQualified: This fully qualified name is unambiguous to the compiler if imported.
| private void formWindowClosing(java.awt.event.WindowEvent ignore) | |
| public void windowClosing(WindowEvent evt) |
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
7f1481e to
d1ce250
Compare
d1ce250 to
7a7db82
Compare
| * You can override private methods, but you can't call private methods in the parent class :( | ||
| */ | ||
| public class PLSProperties extends Hashtable<Object, Object> | ||
| public class PLSProperties extends Hashtable<String, String> |
There was a problem hiding this comment.
JdkObsolete: Hashtable performs synchronization this is usually unnecessary; prefer LinkedHashMap.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
| writeComments(bw, comments); | ||
| } | ||
| bw.write("#" + new Date().toString()); | ||
| bw.write("#" + new Date()); |
There was a problem hiding this comment.
JavaUtilDate: Date has a bad API that leads to bugs; prefer java.time.Instant or LocalDate.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
| Command | Usage |
|---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
Resolves #109