| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -318,7 +318,7 @@ make sure that it uses numbers (or displayWidth/Height), copy into settings | |||
| 318 | 318 | } | |
| 319 | 319 | String[] noContents = matchMethod("noSmooth", searchArea); | |
| 320 | 320 | if (noContents != null) { | |
| 321 | - if (extraStatements != null) { | ||
| 321 | + if (extraStatements.size() != 0) { | ||
| 322 | 322 | throw new SketchException("smooth() and noSmooth() cannot be used in the same sketch"); | |
| 323 | 323 | } else { | |
| 324 | 324 | extraStatements.append(noContents[0]); | |
@@ -369,8 +369,8 @@ make sure that it uses numbers (or displayWidth/Height), copy into settings | |||
| 369 | 369 | throw new SketchException("Please fix the size() line to continue.", false); | |
| 370 | 370 | } | |
| 371 | 371 | ||
| 372 | - if (extraStatements != null) { | ||
| 373 | - info.statement += extraStatements; | ||
| 372 | + if (extraStatements.size() != 0) { | ||
| 373 | + info.statement += extraStatements.join(" "); | ||
| 374 | 374 | } | |
| 375 | 375 | info.checkEmpty(); | |
| 376 | 376 | return info; | |
@@ -401,7 +401,7 @@ make sure that it uses numbers (or displayWidth/Height), copy into settings | |||
| 401 | 401 | } | |
| 402 | 402 | info.width = "displayWidth"; | |
| 403 | 403 | info.height = "displayHeight"; | |
| 404 | - if (extraStatements != null) { | ||
| 404 | + if (extraStatements.size() != 0) { | ||
| 405 | 405 | info.statement += extraStatements.join(" "); | |
| 406 | 406 | } | |
| 407 | 407 | info.checkEmpty(); | |
@@ -410,7 +410,7 @@ make sure that it uses numbers (or displayWidth/Height), copy into settings | |||
| 410 | 410 | ||
| 411 | 411 | // Made it this far, but no size() or fullScreen(), and still | |
| 412 | 412 | // need to pull out the noSmooth() and smooth(N) methods. | |
| 413 | - if (extraStatements != null) { | ||
| 413 | + if (extraStatements.size() != 0) { | ||
| 414 | 414 | SurfaceInfo info = new SurfaceInfo(); | |
| 415 | 415 | info.statement = extraStatements.join(" "); | |
| 416 | 416 | return info; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments