diff options
author | Omair Majid <[email protected]> | 2013-09-20 11:41:36 -0400 |
---|---|---|
committer | Omair Majid <[email protected]> | 2013-09-20 11:41:36 -0400 |
commit | 9ba69baff18dd24b207e0a8b6ad76133fe4ea536 (patch) | |
tree | dcb4a28c4129b0513293d2032bc99fd0e299e0cc /netx/net/sourceforge/jnlp/InformationDesc.java | |
parent | 5f870d7b838b281083fd99cfc234f739815d23e9 (diff) |
Unit test for InformationDesc
Also remove the references to JNLPFile from InformationDesc.
This makes it much easier to instantiate InformationDesc for
tests.
Diffstat (limited to 'netx/net/sourceforge/jnlp/InformationDesc.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/InformationDesc.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/netx/net/sourceforge/jnlp/InformationDesc.java b/netx/net/sourceforge/jnlp/InformationDesc.java index f83329a..4d38d85 100644 --- a/netx/net/sourceforge/jnlp/InformationDesc.java +++ b/netx/net/sourceforge/jnlp/InformationDesc.java @@ -52,17 +52,13 @@ public class InformationDesc { /** the data as list of key,value pairs */ private List<Object> info; - /** the JNLPFile this information is for */ - private JNLPFile jnlpFile; /** * Create an information element object. * - * @param jnlpFile file that the information is for * @param locales the locales the information is for */ - public InformationDesc(JNLPFile jnlpFile, Locale locales[]) { - this.jnlpFile = jnlpFile; + public InformationDesc(Locale locales[]) { this.locales = locales; } @@ -171,6 +167,8 @@ public class InformationDesc { } } + // FIXME if there's no larger icon, choose the closest smaller icon + // instead of the first if (best == null) best = icons[0]; @@ -185,13 +183,6 @@ public class InformationDesc { } /** - * Returns the JNLPFile the information is for. - */ - public JNLPFile getJNLPFile() { - return jnlpFile; - } - - /** * Returns whether offline execution allowed. */ public boolean isOfflineAllowed() { |