Skip to content

Commit 14967e4

Browse files
Fixed maven package error from style check.
1 parent eaa0254 commit 14967e4

File tree

1 file changed

+8
-8
lines changed
  • apm-collector/apm-collector-core/src/main/java/org/skywalking/apm/collector/core/cache

1 file changed

+8
-8
lines changed

apm-collector/apm-collector-core/src/main/java/org/skywalking/apm/collector/core/cache/Window.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@
2323
/**
2424
* @author peng-yongsheng
2525
*/
26-
public abstract class Window<WindowCollection extends Collection> {
26+
public abstract class Window<WINDOW_COLLECTION extends Collection> {
2727

2828
private AtomicInteger windowSwitch = new AtomicInteger(0);
2929

30-
private WindowCollection pointer;
30+
private WINDOW_COLLECTION pointer;
3131

32-
private WindowCollection windowDataA;
33-
private WindowCollection windowDataB;
32+
private WINDOW_COLLECTION windowDataA;
33+
private WINDOW_COLLECTION windowDataB;
3434

3535
protected Window() {
3636
this.windowDataA = collectionInstance();
3737
this.windowDataB = collectionInstance();
3838
this.pointer = windowDataA;
3939
}
4040

41-
public abstract WindowCollection collectionInstance();
41+
public abstract WINDOW_COLLECTION collectionInstance();
4242

4343
public boolean trySwitchPointer() {
4444
return windowSwitch.incrementAndGet() == 1 && !getLast().isReading();
@@ -57,7 +57,7 @@ public void switchPointer() {
5757
getLast().reading();
5858
}
5959

60-
protected WindowCollection getCurrentAndWriting() {
60+
protected WINDOW_COLLECTION getCurrentAndWriting() {
6161
if (pointer == windowDataA) {
6262
windowDataA.writing();
6363
return windowDataA;
@@ -67,11 +67,11 @@ protected WindowCollection getCurrentAndWriting() {
6767
}
6868
}
6969

70-
protected WindowCollection getCurrent() {
70+
protected WINDOW_COLLECTION getCurrent() {
7171
return pointer;
7272
}
7373

74-
public WindowCollection getLast() {
74+
public WINDOW_COLLECTION getLast() {
7575
if (pointer == windowDataA) {
7676
return windowDataB;
7777
} else {

0 commit comments

Comments
 (0)