Skip to content

GMaur/java-duplicates-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

java-duplicates-detector

This is a tool to help you find duplicates in constants in java files.

Usage

  1. Download the library
  2. Copy-paste this snippet:
RepeatedFinder sut = new RepeatedFinder(YourClass.class);
MultiMap<Object, String> duplicates = sut.findDuplicates();

for(Object current : duplicates.all()){
	System.out.println("found value = '" + current+"', with variables = " + duplicates.get(current));
}

Tests

See RepeatedFinderShould for some tests

Behavior

This class only finds repeated values in static variables.

Example:

public static Integer _3 = 3;
public static Integer THREE = 3; // repeated with _3

public Integer _2 = 2;
public Integer TWO = 2; // no repetition

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages