Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Add some issues #1

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

Add some issues #1

wants to merge 1 commit into from

Conversation

bellingard
Copy link
Owner

No description provided.

@@ -5,10 +5,15 @@
*/
public class Foo {

public int i;
Copy link

Choose a reason for hiding this comment

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

MAJOR Document this public field. rule
MAJOR Make i a static final constant or non-public and provide accessors if needed. rule

@ghost
Copy link

ghost commented May 10, 2016

SonarQube analysis reported 3 issues

  • MAJOR 3 major

Watch the comments in this conversation to review them.

public static int div(int a, int b) {
if (b == 0) {
throw new UnsupportedOperationException("Can't divide by zero!");
}

System.out.println("foo");
Copy link

Choose a reason for hiding this comment

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

MAJOR Replace this usage of System.out or System.err by a logger. rule

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

Successfully merging this pull request may close these issues.

1 participant