Skip to content

Commit 30f68de

Browse files
committed
Revise from review
1 parent f812a10 commit 30f68de

File tree

10 files changed

+17
-18
lines changed

10 files changed

+17
-18
lines changed

src/org/opensolaris/opengrok/configuration/RuntimeEnvironment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ public short getContextLimit() {
13251325
public void setContextLimit(Short value)
13261326
throws IllegalArgumentException {
13271327
if (value < 1) {
1328-
throw new IllegalArgumentException("`value' is not positive");
1328+
throw new IllegalArgumentException("value is not positive");
13291329
}
13301330
contextLimit = value;
13311331
}
@@ -1354,7 +1354,7 @@ public short getContextSurround() {
13541354
public void setContextSurround(Short value)
13551355
throws IllegalArgumentException {
13561356
if (value < 0) {
1357-
throw new IllegalArgumentException("`value' is negative");
1357+
throw new IllegalArgumentException("value is negative");
13581358
}
13591359
contextSurround = value;
13601360
}

src/org/opensolaris/opengrok/search/QueryBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public class QueryBuilder {
8888
*/
8989
public QueryBuilder reset(QueryBuilder other) {
9090
if (other == null) {
91-
throw new IllegalArgumentException("`other' is null");
91+
throw new IllegalArgumentException("other is null");
9292
}
9393
if (this != other) {
9494
queries.clear();

src/org/opensolaris/opengrok/search/context/Context.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class Context {
9090
*/
9191
public Context(Query query, QueryBuilder qbuilder) {
9292
if (qbuilder == null) {
93-
throw new IllegalArgumentException("`qbuilder' is null");
93+
throw new IllegalArgumentException("qbuilder is null");
9494
}
9595

9696
this.query = query;

src/org/opensolaris/opengrok/search/context/ContextArgs.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public class ContextArgs {
5050
public ContextArgs(short contextSurround, short contextLimit) {
5151
if (contextSurround < 0) {
5252
throw new IllegalArgumentException(
53-
"`contextSurround' cannot be negative");
53+
"contextSurround cannot be negative");
5454
}
5555
if (contextLimit < 1) {
5656
throw new IllegalArgumentException(
57-
"`contextLimit' must be positive");
57+
"contextLimit must be positive");
5858
}
5959
this.contextSurround = contextSurround;
6060
this.contextLimit = contextLimit;

src/org/opensolaris/opengrok/search/context/ContextFormatter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public int getMoreLimit() {
149149
*/
150150
public void setMoreLimit(int value) {
151151
if (value < 0) {
152-
throw new IllegalArgumentException("`value' is negative");
152+
throw new IllegalArgumentException("value is negative");
153153
}
154154
this.moreLimit = value;
155155
}
@@ -200,7 +200,7 @@ public void setScopes(Scopes value) {
200200
public Object format(Passage[] passages, String originalText) {
201201
String lineUrl = url;
202202
if (lineUrl == null) {
203-
throw new IllegalStateException("`Url' property is null");
203+
throw new IllegalStateException("Url property is null");
204204
}
205205

206206
if (this.originalText == null || !this.originalText.equals(

src/org/opensolaris/opengrok/search/context/FormattedLines.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public String pop() {
9292
*/
9393
public String put(int lineno, String line) {
9494
if (line == null) {
95-
throw new IllegalArgumentException("`line' is null");
95+
throw new IllegalArgumentException("line is null");
9696
}
9797
return lines.put(lineno, line);
9898
}

src/org/opensolaris/opengrok/search/context/LineHighlight.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
import java.io.IOException;
2727
import java.util.ArrayList;
28-
import java.util.Collections;
2928
import java.util.List;
3029
import org.opensolaris.opengrok.web.HtmlConsts;
3130
import org.opensolaris.opengrok.web.Util;
@@ -48,7 +47,7 @@ public class LineHighlight {
4847

4948
public LineHighlight(int lineno) {
5049
if (lineno < 0) {
51-
throw new IllegalArgumentException("`lineno' cannot be negative");
50+
throw new IllegalArgumentException("lineno cannot be negative");
5251
}
5352
this.lineno = lineno;
5453
}
@@ -98,7 +97,7 @@ public void condenseMarkups() {
9897
*/
9998
public void addMarkup(PhraseHighlight phi) {
10099
if (phi == null) {
101-
throw new IllegalArgumentException("`phi' is null");
100+
throw new IllegalArgumentException("phi is null");
102101
}
103102
if (markups == null) {
104103
markups = new ArrayList<>();
@@ -126,7 +125,7 @@ public int getLelide() {
126125
*/
127126
public void setLelide(int value) {
128127
if (value < 0) {
129-
throw new IllegalArgumentException("`value' is negative");
128+
throw new IllegalArgumentException("value is negative");
130129
}
131130
this.lelide = value;
132131
}
@@ -144,7 +143,7 @@ public int getRelide() {
144143
*/
145144
public void setRelide(int value) {
146145
if (value < 0) {
147-
throw new IllegalArgumentException("`value' is negative");
146+
throw new IllegalArgumentException("value is negative");
148147
}
149148
this.relide = value;
150149
}

src/org/opensolaris/opengrok/search/context/OGKUnifiedHighlighter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public OGKUnifiedHighlighter(RuntimeEnvironment env,
8080
super(indexSearcher, indexAnalyzer);
8181

8282
if (env == null) {
83-
throw new IllegalArgumentException("`env' is null");
83+
throw new IllegalArgumentException("env is null");
8484
}
8585
this.env = env;
8686
}

src/org/opensolaris/opengrok/search/context/PassageConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class PassageConverter {
4343
*/
4444
public PassageConverter(ContextArgs args) {
4545
if (args == null) {
46-
throw new IllegalArgumentException("`args' is null");
46+
throw new IllegalArgumentException("args is null");
4747
}
4848
this.args = args;
4949
}

src/org/opensolaris/opengrok/search/context/StrictLineBreakIterator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public int last() {
6464
@Override
6565
public int next(int n) {
6666
if (n < 0) {
67-
throw new IllegalArgumentException("`n' cannot be negative");
67+
throw new IllegalArgumentException("n cannot be negative");
6868
}
6969

7070
int noff = current();
@@ -195,7 +195,7 @@ public CharacterIterator getText() {
195195
@Override
196196
public void setText(CharacterIterator newText) {
197197
if (newText == null) {
198-
throw new IllegalArgumentException("`newText' is null");
198+
throw new IllegalArgumentException("newText is null");
199199
}
200200
this.charIt = newText;
201201
this.breaks.clear();

0 commit comments

Comments
 (0)