Skip to content

Commit 5b7711c

Browse files
committed
Merge pull request #93 from eprogramming/master
fix pmd default rules
2 parents ba50a62 + 6a90fdf commit 5b7711c

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

build.gradle

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ apply plugin: 'idea'
2323
apply plugin: 'eclipse'
2424
apply plugin: 'maven'
2525
apply plugin: 'application'
26+
apply plugin: 'pmd'
2627

2728
group = 'org.jboss.aesh'
28-
version = '0.57-SNAPSHOT'
29+
version = '0.57'
2930

3031
mainClassName = 'org.jboss.aesh.mterm.Mterm'
3132

@@ -49,12 +50,12 @@ test {
4950

5051
dependencies {
5152
compile group: 'org.jboss.aesh', name: 'aesh', version: version
52-
compile group: 'org.jboss.aesh', name: 'aesh-extensions', version: version
53+
compile group: 'org.jboss.aesh', name: 'aesh-extensions', version: '0.57-SNAPSHOT'
5354
compile group: 'org.codehaus.groovy', name: 'groovy', version: '2.1.6'
5455
testCompile group: 'junit', name: 'junit', version: '4.+'
5556
testCompile group: 'org.easytesting', name: 'fest-swing', version: '1.2.1'
5657
}
5758

5859
task wrapper(type: Wrapper) {
5960
gradleVersion = '2.2.1'
60-
}
61+
}

src/main/java/org/jboss/aesh/mterm/action/BaseAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected String readLine() {
4545
int lineOffset = textArea.getLineOfOffset(textArea.getCaretPosition());
4646
int lineStart = textArea.getLineStartOffset(lineOffset);
4747
int lineEnd = textArea.getLineEndOffset(lineOffset);
48-
return textArea.getText(lineStart, (lineEnd - lineStart));
48+
return textArea.getText(lineStart, lineEnd - lineStart);
4949
}
5050
catch (BadLocationException e) {
5151
e.printStackTrace();

src/main/java/org/jboss/aesh/mterm/action/menu/MenuTitleAction.java

-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,5 @@ public void actionPerformed(ActionEvent e) {
3636
JOptionPane.PLAIN_MESSAGE, null, null, mtermUI.getTitle());
3737

3838
mtermUI.setTitle(newTitle);
39-
40-
return;
41-
4239
}
4340
}

src/main/java/org/jboss/aesh/mterm/util/AeshUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public String getResult() {
105105
* @throws IOException exception
106106
*/
107107
public void run(String command) throws IOException {
108-
getPos().write((command).getBytes());
108+
getPos().write(command.getBytes());
109109
getPos().write(Config.getLineSeparator().getBytes());
110110
getPos().flush();
111111
pause();

0 commit comments

Comments
 (0)