checkstyle: enable OneTopLevelClass
The only remaining error was ClipboardCompat, which was unnecessarily exposing three top-level classes. Make the two implementation classes be nested, private and static.
This commit is contained in:
parent
6311ad5c6b
commit
78af79cd4f
@ -17,10 +17,8 @@ public abstract class ClipboardCompat {
|
|||||||
return new OldClipboard();
|
return new OldClipboard();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@TargetApi(11)
|
@TargetApi(11)
|
||||||
class HoneycombClipboard extends ClipboardCompat {
|
private static class HoneycombClipboard extends ClipboardCompat {
|
||||||
|
|
||||||
private final ClipboardManager manager;
|
private final ClipboardManager manager;
|
||||||
|
|
||||||
@ -41,10 +39,11 @@ class HoneycombClipboard extends ClipboardCompat {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class OldClipboard extends ClipboardCompat {
|
private static class OldClipboard extends ClipboardCompat {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getText() {
|
public String getText() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
</module>
|
</module>
|
||||||
<module name="NoLineWrap"/>
|
<module name="NoLineWrap"/>
|
||||||
|
|
||||||
<!--<module name="OneTopLevelClass" />-->
|
<module name="OneTopLevelClass" />
|
||||||
<module name="OneStatementPerLine" />
|
<module name="OneStatementPerLine" />
|
||||||
|
|
||||||
<module name="EmptyBlock">
|
<module name="EmptyBlock">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user