Skip to content

Commit ec24d2d

Browse files
committed
Fix violations
1 parent 5c96f79 commit ec24d2d

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

config/checkstyle/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@
354354
</module>
355355
<module name="RegexpSingleline">
356356
<property name="severity" value="error" />
357-
<property name="format" value="throw new " />
357+
<property name="format" value="throw new RuntimeExc" />
358358
<property name="message" value="Use `throw runtimeException('Error Message')` or `throw exception('Error message')`" />
359359
<property name="id" value="MatcherThrowingExceptions_Error" />
360360
<property name="fileExtensions" value="java"/>

jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/complex/TreeViewNode.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ public UIElement iCore() {
122122
@Override
123123
@JDIAction("Get '{name}' text value")
124124
public String getValue() {
125-
126125
return iCore().getText();
127126
}
128127

@@ -140,7 +139,6 @@ public int size() {
140139

141140
@JDIAction("Get '{name}' check list")
142141
public WebList checkList() {
143-
144142
return new WebList();
145143
}
146144

@@ -352,7 +350,7 @@ public void refresh() {
352350

353351
@Override
354352
public void clear() {
355-
throw new UnsupportedOperationException();
353+
throw runtimeException("Clear operation is not supported by TreeViewNode");
356354
}
357355

358356
protected TreeViewNode create(UIElement base) {

jdi-light-vuetify/src/main/java/com/epam/jdi/light/vuetify/elements/complex/tables/DataTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public void groupBy(String colName) {
202202
return;
203203
}
204204
}
205-
205+
// @todo add a public method to check if grouping by column is available
206206
//check if it is already grouped by
207207
if (groups.isEmpty()) {
208208
throw runtimeException(String.format("Grouping by column '%s' is not available", colName));

0 commit comments

Comments
 (0)