Add more warnings source to 1.6) and fix warnings
[nikiroo-utils.git] / src / be / nikiroo / utils / Progress.java
index 5ee32217d466c1ad7bbb13e21ecf24e6fe457f57..2872530b68542585783467e3241835072e75570a 100644 (file)
@@ -294,6 +294,7 @@ public class Progress {
         *            the progress to set
         */
        private void setTotalProgress(Progress pg, String name, int progress) {
+               // TODO: name is not used... and this is probably a bug in this case
                synchronized (getLock()) {
                        progress = Math.max(min, progress);
                        progress = Math.min(max, progress);
@@ -379,6 +380,7 @@ public class Progress {
                }
 
                progress.addProgressListener(new ProgressListener() {
+                       @Override
                        public void progress(Progress pg, String name) {
                                synchronized (getLock()) {
                                        double total = ((double) localProgress) / (max - min);