Changeset 772
- Timestamp:
- 09/05/12 15:53:38 (12 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-plugin-core-test/src/test/java/de/ugoe/cs/quest/plugin/PluginLoaderTest.java
r766 r772 2 2 3 3 import java.io.File; 4 import java.util.Arrays; 4 5 import java.util.Collection; 5 6 … … 169 170 assertNotNull(plugin); 170 171 assertEquals("Mock Plugin", plugin.getTitle()); 171 assert ArrayEquals(new String[]{"de.ugoe.cs.quest.plugin.mock.commands"}, plugin.getCommandPackages());172 assertEquals(Arrays.asList(new String[]{"de.ugoe.cs.quest.plugin.mock.commands"}), plugin.getCommandPackages()); 172 173 } 173 174 -
trunk/quest-plugin-core/src/main/java/de/ugoe/cs/quest/plugin/QuestPlugin.java
r514 r772 1 1 package de.ugoe.cs.quest.plugin; 2 3 import java.util.List; 2 4 3 5 /** … … 22 24 /** 23 25 * <p> 24 * Collectionof {@link String}s that contain the commands defined by this25 * plug-in. 26 * {@link List} of {@link String}s that contain the commands defined by this 27 * plug-in. The List is immutable. 26 28 * </p> 27 29 * <p> … … 32 34 * @return 33 35 */ 34 public String[]getCommandPackages();36 public List<String> getCommandPackages(); 35 37 } -
trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/GUITARPlugin.java
r516 r772 1 1 package de.ugoe.cs.quest.plugin.guitar; 2 3 import java.util.Arrays; 4 import java.util.Collections; 5 import java.util.List; 2 6 3 7 import de.ugoe.cs.quest.plugin.QuestPlugin; … … 36 40 */ 37 41 @Override 38 public String[]getCommandPackages() {39 return commandPackages;42 public List<String> getCommandPackages() { 43 return Collections.unmodifiableList(Arrays.asList(commandPackages)); 40 44 } 41 45 -
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/JFCPlugin.java
r655 r772 1 1 package de.ugoe.cs.quest.plugin.jfc; 2 3 import java.util.Arrays; 4 import java.util.Collections; 5 import java.util.List; 2 6 3 7 import de.ugoe.cs.quest.plugin.QuestPlugin; … … 37 41 */ 38 42 @Override 39 public String[]getCommandPackages() {40 return commandPackages;43 public List<String> getCommandPackages() { 44 return Collections.unmodifiableList(Arrays.asList(commandPackages)); 41 45 } 42 46 -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/MFCPlugin.java
r516 r772 1 1 package de.ugoe.cs.quest.plugin.mfc; 2 3 import java.util.Arrays; 4 import java.util.Collections; 5 import java.util.List; 2 6 3 7 import de.ugoe.cs.quest.plugin.QuestPlugin; … … 36 40 */ 37 41 @Override 38 public String[]getCommandPackages() {39 return commandPackages;42 public List<String> getCommandPackages() { 43 return Collections.unmodifiableList(Arrays.asList(commandPackages)); 40 44 } 41 45 -
trunk/quest-plugin-php/src/main/java/de/ugoe/cs/quest/plugin/php/PHPPlugin.java
r516 r772 1 1 package de.ugoe.cs.quest.plugin.php; 2 3 import java.util.Arrays; 4 import java.util.Collections; 5 import java.util.List; 2 6 3 7 import de.ugoe.cs.quest.plugin.QuestPlugin; … … 36 40 */ 37 41 @Override 38 public String[]getCommandPackages() {39 return commandPackages;42 public List<String> getCommandPackages() { 43 return Collections.unmodifiableList(Arrays.asList(commandPackages)); 40 44 } 41 42 45 }
Note: See TracChangeset
for help on using the changeset viewer.