Skip to content

Commit

Permalink
Allow one char method words for more helpful ZK names
Browse files Browse the repository at this point in the history
  • Loading branch information
feldoh committed Oct 21, 2018
1 parent 5ac4809 commit 6938e36
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
</configuration>
<goals>
<goal>check</goal>
<goal>checkstyle</goal>
</goals>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,38 +626,47 @@ void cZxidToClipboard() {
void cTimeToClipboard() {
toClipboard(labctime::getText);
}

@FXML
void aclVersionToClipboard() {
toClipboard(labaclVersion::getText);
}

@FXML
void cVersionToClipboard() {
toClipboard(labcversion::getText);
}

@FXML
void dataLengthToClipboard() {
toClipboard(labdataLength::getText);
}

@FXML
void dataVersionToClipboard() {
toClipboard(labdataversion::getText);
}

@FXML
void ephemeralOwnerToClipboard() {
toClipboard(labephemeralOwner::getText);
}

@FXML
void mTimeToClipboard() {
toClipboard(labmtime::getText);
}

@FXML
void mZxidToClipboard() {
toClipboard(labmZxid::getText);
}

@FXML
void pZxidToClipboard() {
toClipboard(labpZxid::getText);
}

@FXML
void numChildrenToClipboard() {
toClipboard(labnumChildren::getText);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
<property name="allowThrowsTagsForSubclasses" value="true"/>
</module>
<module name="MethodName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
<property name="format" value="^[a-z][a-z0-9]?[a-zA-Z0-9_]*$"/>
<message key="name.invalidPattern"
value="Method name ''{0}'' must match pattern ''{1}''."/>
</module>
Expand Down

0 comments on commit 6938e36

Please sign in to comment.