X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTApplication.java;h=d06d0d659b0ed7dfd474743e0a43bb55edc9b8fe;hb=329fd62e4acdaa8e9f4cccd518d47c0b07e79f51;hp=51566287286b7ef5af238a4ec1f22dae5df08a51;hpb=4b257bd88a40bb1b7ad6b14c3ecaf6a3d5d10a9b;p=fanfix.git diff --git a/src/jexer/TApplication.java b/src/jexer/TApplication.java index 5156628..d06d0d6 100644 --- a/src/jexer/TApplication.java +++ b/src/jexer/TApplication.java @@ -89,7 +89,7 @@ public class TApplication implements Runnable { ECMA48, /** - * Synonym for ECMA48 + * Synonym for ECMA48. */ XTERM } @@ -518,6 +518,10 @@ public class TApplication implements Runnable { // Fall through... case ECMA48: backend = new ECMA48Backend(this, null, null); + break; + default: + throw new IllegalArgumentException("Invalid backend type: " + + backendType); } TApplicationImpl(); } @@ -1003,7 +1007,7 @@ public class TApplication implements Runnable { // secondary thread locks again. When it gives up, we have the // single lock back. boolean oldLock = unlockHandleEvent(); - assert (oldLock == true); + assert (oldLock); while (secondaryEventReceiver != null) { synchronized (primaryEventHandler) { @@ -1905,6 +1909,7 @@ public class TApplication implements Runnable { * * @param path path of selected file * @return the result of the new file open box + * @throws IOException if java.io operation throws */ public final String fileOpenBox(final String path) throws IOException { @@ -1918,6 +1923,7 @@ public class TApplication implements Runnable { * @param path path of selected file * @param type one of the Type constants * @return the result of the new file open box + * @throws IOException if java.io operation throws */ public final String fileOpenBox(final String path, final TFileOpenBox.Type type) throws IOException {