Skip to content

Commit 608f4ff

Browse files
authored
Fixed spotbugs recursive bugs (#4318)
1 parent c4df216 commit 608f4ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CodenameOne/src/com/codename1/io/BufferedInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ public synchronized long skip(long n) throws IOException {
549549
*/
550550
public synchronized int available() throws IOException {
551551
if (disableBuffering) {
552-
return available();
552+
return in.available();
553553
}
554554
return superAvailable() + (count - pos);
555555
}

CodenameOne/src/com/codename1/ui/BrowserComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ public void run() {
14391439
* @param callback Callback to call when complete.
14401440
*/
14411441
public void execute(int timeout, String js, Object[] params, SuccessCallback<JSRef> callback) {
1442-
execute(0, js, params, callback);
1442+
execute(timeout, injectParameters(js, params), callback);
14431443
}
14441444

14451445
/**

CodenameOne/src/com/codename1/ui/TextSelection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ public Char newChar(int pos, int x, int y, int w, int h) {
562562
* @return
563563
*/
564564
public Char newChar(int pos, Rectangle bounds) {
565-
return newChar(pos, bounds);
565+
return newChar(pos, bounds.getX(), bounds.getY(), bounds.getWidth(), bounds.getHeight());
566566
}
567567

568568
/**

0 commit comments

Comments
 (0)