GiraffaFS / giraffa

Giraffa FileSystem (Slack: giraffa-fs.slack.com)
https://giraffa.ci.cloudbees.com
Apache License 2.0
17 stars 6 forks source link

Fix Java warnings excluding generated-sources #104

Closed shvachko closed 9 years ago

shvachko commented 9 years ago

We have a lot of Java warnings. Fix them excluding WebUI for now.

octo47 commented 9 years ago

Fixed what Idea suggests and seems reasonable. Didn't touch BlockManagementAgent and NamespaceAgent due of upcoming #94

shvachko commented 9 years ago

There is a lot of unrelated changes, like

So the patch needs some cleaning up.

octo47 commented 9 years ago

sure, qualifiers are more style fixes then warnings. interfaces usually static fields. but let's be explicit. as for ordering we need to define style to avoid ordering by hand. something like https://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s3.3-import-statements I'll revert that back.

octo47 commented 9 years ago

fixed, thank you for reviewing.

shvachko commented 9 years ago
  1. Patch adds a bogus comment in GiraffaFileSystem. Please remove. //noinspection StatementWithEmptyBody
  2. Also there is no need to @SuppressWarnings("deprecation"). I don't see any warnings in GiraffaFileSystem.
  3. @SuppressWarnings("ALL") is cheating - doesn't work. If there is no way to fix, just leave them with a proper explanation. But I don't see any warnings GiraffaProtos.
  4. There are no warnings in RowKeyBytes. Don't change it. You can fix it in another jira if this is a bug, which I personally don't see.
  5. Changes in GiraffaFileServlet, GiraffaHbaseServlet and GiraffaWebUtils are in web package, should not be in this jira.
  6. TestDirectoryTable does not have any warnings, why did you change it?
  7. TestGiraffaUpgrade still has two warnings: unused blockID and genStamp.
octo47 commented 9 years ago

I used Intellij warnings, so that is sort of combined issue with #97. I'd rather will not do this issue. Sorry to taking it.

shvachko commented 9 years ago

I updated issue-104 branch, but did not create a new pull request. Please review the branch, just compare it to trunk.

pjeli commented 9 years ago

+1; tests passing and changes look good.

shvachko commented 9 years ago

Committed. Thanks everybody for working on it.