GerritCodeReview / plugins_websession-flatfile
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 31 units with 199 lines of code in units (49.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 4 small units (57 lines of code)
    • 27 very small units (142 lines of code)
0% | 0% | 0% | 28% | 71%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 0% | 28% | 71%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/main/java/com/googlesource/gerrit/plugins/websession/flatfile0% | 0% | 0% | 28% | 71%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private Val readFile()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
18 4 1
public void put()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
16 2 2
public void cleanUp()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
12 3 0
public Val get()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
11 3 2
public void start()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCacheCleaner.java
10 1 0
public ImmutableMap getAllPresent()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
10 3 1
public void run()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCacheCleaner.java
9 2 0
private Stream sessionStream()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
9 2 0
public ConcurrentMap asMap()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
8 1 0
public Val getIfPresent()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
7 2 1
private void deleteFile()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
7 2 1
private void foreachSession()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
7 2 1
public void stop()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCacheCleaner.java
6 2 0
protected void configure()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSession.java
6 1 0
Path getWebSessionDir()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/Module.java
5 1 3
Long getCleanupInterval()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/Module.java
5 1 2
public void invalidate()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
5 2 1
public void invalidateAll()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
5 2 1
public void putAll()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
5 2 1
public FlatFileWebSessionCache()
in src/main/java/com/googlesource/gerrit/plugins/websession/flatfile/FlatFileWebSessionCache.java
4 1 1