-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#195 Add a test case
- Loading branch information
Showing
3 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/resources/org/jpeek/samples/ClassSameAsAnotherPublicField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.jpeek.samples; | ||
|
||
public final class ClassSameAsAnotherPublicField { | ||
private String NAME = "hey"; | ||
|
||
public void test() { | ||
ClassWithPublicField.NAME = "test"; | ||
} | ||
|
||
public void foo() { | ||
this.NAME = "test"; | ||
} | ||
} | ||
|
||
class ClassWithPublicField { | ||
public static String NAME = "yoo"; | ||
} |
c080f28
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.
Puzzle
120-bc67ce38
disappeared fromsrc/main/resources/org/jpeek/metrics/TCC.xsl
, that's why I closed #195. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.