- Timestamp:
- 2024-02-09T15:26:06+01:00 (10 months ago)
- Location:
- trunk
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r18871 r18972 103 103 } 104 104 105 /** 106 * A record class to store how a multipolygon is constructed 107 */ 105 108 public static class Multipolygon { 106 109 private final Way outerWay; … … 161 164 /** 162 165 * HelperClass - saves a way and the "inside" side. 163 * 166 * <p> 164 167 * insideToTheLeft: if true left side is "in", false -right side is "in". 165 168 * Left and right are determined along the orientation of way. … … 235 238 } 236 239 240 /** 241 * A multipolygon with a list of inner ways and an assembled polygon for the outer way 242 */ 237 243 public static class AssembledMultipolygon { 244 /** The outer way of the multipolygon */ 238 245 public AssembledPolygon outerWay; 246 /** The inner polygons of the multipolygon */ 239 247 public List<AssembledPolygon> innerWays; 240 248 249 /** 250 * Create a new {@link AssembledMultipolygon} 251 * @param way The outer way 252 */ 241 253 public AssembledMultipolygon(AssembledPolygon way) { 242 254 outerWay = way; … … 402 414 403 415 /** 404 * Search for an 416 * Search for another way coming to the same head node at left side from last way. #9951 405 417 * @return left way or null if none found 406 418 */ … … 652 664 653 665 //first remove nodes in the same coordinate 654 boolean removedDuplicates = false; 655 removedDuplicates |= removeDuplicateNodes(allStartingWays); 666 boolean removedDuplicates = removeDuplicateNodes(allStartingWays); 656 667 657 668 if (removedDuplicates) { … … 1135 1146 if (chunks.size() > 1) { 1136 1147 SplitWayCommand split = SplitWayCommand.splitWay(way, chunks, 1137 Collections. <OsmPrimitive>emptyList(), SplitWayCommand.Strategy.keepFirstChunk());1148 Collections.emptyList(), SplitWayCommand.Strategy.keepFirstChunk()); 1138 1149 1139 1150 if (split != null) { -
trunk/src/org/openstreetmap/josm/data/osm/Filter.java
r15477 r18972 93 93 } 94 94 95 /** 96 * The class for storing and retrieving a filter from a preference entry 97 */ 95 98 public static class FilterPreferenceEntry { 99 /** See {@link Filter#version} */ 96 100 @WriteExplicitly 97 101 @StructEntry public String version = "1"; 98 102 103 /** See {@link Filter#text} */ 99 104 @StructEntry public String text; 100 105 … … 111 116 @StructEntry public String mode = "add"; 112 117 118 /** See {@link Filter#caseSensitive} */ 113 119 @StructEntry public boolean case_sensitive; 114 120 121 /** See {@link Filter#regexSearch} */ 115 122 @StructEntry public boolean regex_search; 116 123 124 /** See {@link Filter#mapCSSSearch} */ 117 125 @StructEntry public boolean mapCSS_search; 118 126 -
trunk/src/org/openstreetmap/josm/gui/conflict/pair/AbstractListMergeModel.java
r18801 r18972 356 356 } 357 357 358 /** 359 * Clear the merged list. 360 */ 358 361 public void clearMerged() { 359 362 getMergedEntries().clear(); … … 582 585 * This an adapter between a {@link JTable} and one of the three entry lists 583 586 * in the role {@link ListRole} managed by the {@link AbstractListMergeModel}. 584 * 587 * <p> 585 588 * From the point of view of the {@link JTable} it is a {@link TableModel}. 586 589 * … … 593 596 594 597 /** 595 * 598 * Create a new {@link EntriesTableModel} 596 599 * @param role the role 597 600 */ … … 731 734 * This is the selection model to be used in a {@link JTable} which displays 732 735 * an entry list managed by {@link AbstractListMergeModel}. 733 * 736 * <p> 734 737 * The model ensures that only rows displaying an entry in the entry list 735 738 * can be selected. "Empty" rows can't be selected. … … 832 835 } 833 836 837 /** 838 * A model for {@link ComparePairType} with the enums added as options. 839 */ 834 840 public class ComparePairListModel extends JosmComboBoxModel<ComparePairType> { 835 841 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionType.java
r15732 r18972 33 33 public Direction direction; 34 34 35 /** 36 * The direction of the way connection 37 */ 35 38 public enum Direction { 36 39 FORWARD, BACKWARD, ROUNDABOUT_LEFT, ROUNDABOUT_RIGHT, NONE; -
trunk/src/org/openstreetmap/josm/gui/io/CustomConfigurator.java
r18801 r18972 59 59 import org.xml.sax.SAXException; 60 60 61 import jakarta.annotation.Nullable; 62 61 63 /** 62 64 * Class to process configuration changes stored in XML … … 176 178 } 177 179 180 /** 181 * Ask the user for text 182 * @param text The message for the user 183 * @return The text the user entered 184 */ 185 @Nullable 178 186 public static String askForText(String text) { 179 187 String s = JOptionPane.showInputDialog(MainApplication.getMainFrame(), text, tr("Enter text"), JOptionPane.QUESTION_MESSAGE); … … 261 269 } 262 270 271 /** 272 * Delete a file 273 * @param path The path to delete inside the base directory 274 * @param base The base directory for the path 275 */ 263 276 public static void deleteFile(String path, String base) { 264 277 String dir = getDirectoryByAbbr(base); … … 277 290 } 278 291 292 /** 293 * Delete a file or a directory 294 * @param f The file or directory to delete 295 */ 279 296 public static void deleteFileOrDirectory(File f) { 280 297 if (f.isDirectory()) { … … 293 310 private static boolean busy; 294 311 312 /** 313 * Perform install, uninstall, and deletion operations on plugins 314 * @param install The {@code ;} delimited list of plugins to install 315 * @param uninstall The {@code ;} delimited list of plugins to uninstall 316 * @param delete The {@code ;} delimited list of plugins to delete 317 */ 295 318 public static void pluginOperation(String install, String uninstall, String delete) { 296 319 final List<String> installList = new ArrayList<>(); … … 376 399 } 377 400 401 /** 402 * Read preferences from xml files 403 */ 378 404 public static class XMLCommandProcessor { 379 405 … … 384 410 private boolean lastV; // last If condition result 385 411 412 /** 413 * Read preferences from an XML file 414 * @param file The file to read custom preferences from 415 */ 386 416 public void openAndReadXML(File file) { 387 417 PreferencesUtils.log("-- Reading custom preferences from " + file.getAbsolutePath() + " --"); … … 397 427 } 398 428 429 /** 430 * Read custom preferences from an XML {@link InputStream} 431 * @param is The {@link InputStream} to read from 432 */ 399 433 public void openAndReadXML(InputStream is) { 400 434 try { … … 409 443 } 410 444 445 /** 446 * Create a new {@link XMLCommandProcessor} 447 * @param mainPrefs The preferences to modify with custom preferences 448 */ 411 449 public XMLCommandProcessor(Preferences mainPrefs) { 412 450 this.mainPrefs = mainPrefs; … … 548 586 String locText = evalVars(elem.getAttribute(LanguageInfo.getJOSMLocaleCode()+".text")); 549 587 if (!locText.isEmpty()) text = locText; 550 String var = elem.getAttribute("var");551 if (var .isEmpty()) var= "result";588 String varAttribute = elem.getAttribute("var"); 589 if (varAttribute.isEmpty()) varAttribute = "result"; 552 590 553 591 String input = evalVars(elem.getAttribute("input")); 554 592 if ("true".equals(input)) { 555 setVar(var , askForText(text));593 setVar(varAttribute, askForText(text)); 556 594 } else { 557 595 String opts = evalVars(elem.getAttribute("options")); 558 596 String locOpts = evalVars(elem.getAttribute(LanguageInfo.getJOSMLocaleCode()+".options")); 559 597 if (!locOpts.isEmpty()) opts = locOpts; 560 setVar(var, String.valueOf(askForOption(text, opts))); 561 } 562 } 563 598 setVar(varAttribute, String.valueOf(askForOption(text, opts))); 599 } 600 } 601 602 /** 603 * Set a variable in the environment 604 * @param name The name of the environment variable 605 * @param value The value for the environment variable 606 */ 564 607 public void setVar(String name, String value) { 565 608 environment.put(name, value); … … 604 647 */ 605 648 private String evalVars(String s) { 606 Matcher mr = Pattern.compile("\\$\\{(?<identifier>[^ \\}]*)\\}").matcher(s);649 Matcher mr = Pattern.compile("\\$\\{(?<identifier>[^}]*)}").matcher(s); 607 650 StringBuffer sb = new StringBuffer(); 608 651 while (mr.find()) { -
trunk/src/org/openstreetmap/josm/gui/io/SaveLayersModel.java
r16438 r18972 22 22 public static final String MODE_PROP = SaveLayerInfo.class.getName() + ".mode"; 23 23 24 /** 25 * The status of the editor 26 */ 24 27 public enum Mode { 25 28 EDITING_DATA, -
trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java
r17862 r18972 6 6 7 7 import java.awt.Component; 8 import java.awt.GridBagConstraints; 8 9 import java.awt.GridBagLayout; 9 10 import java.awt.event.ActionEvent; … … 48 49 /** 49 50 * Abstract base class for background imagery layers ({@link WMSLayer}, {@link TMSLayer}, {@link WMTSLayer}). 50 * 51 * <p> 51 52 * Handles some common tasks, like image filters, image processors, etc. 52 53 */ … … 138 139 panel.add(new JLabel(entry.get(0) + ':'), GBC.std()); 139 140 panel.add(GBC.glue(5, 0), GBC.std()); 140 panel.add(createTextField(entry.get(1)), GBC.eol().fill(G BC.HORIZONTAL));141 panel.add(createTextField(entry.get(1)), GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 141 142 } 142 143 } … … 193 194 } 194 195 196 /** 197 * Create an offset for an imagery layer 198 */ 195 199 public class OffsetAction extends AbstractAction implements LayerAction { 196 200 @Override … … 223 227 /** 224 228 * Create the submenu or the menu item to set the offset of the layer. 225 * 229 * <p> 226 230 * If only one menu item for this layer exists, it is returned by this method. 227 * 231 * <p> 228 232 * If there are multiple, this method appends them to the subMenu and then returns the reference to the subMenu. 229 233 * @param subMenu The subMenu to use -
trunk/src/org/openstreetmap/josm/gui/layer/JumpToMarkerActions.java
r12799 r18972 124 124 } 125 125 126 /** 127 * Go to the next marker in a layer 128 */ 126 129 public static final class JumpToNextMarker extends JumpToMarker { 127 130 131 /** 132 * Create a new {@link JumpToNextMarker} action 133 * @param layer The layer to use when jumping to the next marker 134 */ 128 135 public JumpToNextMarker(JumpToMarkerLayer layer) { 129 136 super(layer, Shortcut.registerShortcut("core_multikey:nextMarker", tr("Multikey: {0}", tr("Next marker")), … … 140 147 } 141 148 149 /** 150 * Go to the previous marker in a layer 151 */ 142 152 public static final class JumpToPreviousMarker extends JumpToMarker { 143 153 154 /** 155 * Create a new {@link JumpToPreviousMarker} action 156 * @param layer The layer to use when jumping to the previous marker 157 */ 144 158 public JumpToPreviousMarker(JumpToMarkerLayer layer) { 145 159 super(layer, Shortcut.registerShortcut("core_multikey:previousMarker", tr("Multikey: {0}", tr("Previous marker")), -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java
r18948 r18972 620 620 } 621 621 622 /** 623 * Toggle visibility of the marker text and icons 624 */ 622 625 public static final class ShowHideMarkerText extends AbstractAction implements LayerAction { 623 626 private final transient MarkerLayer layer; 624 627 628 /** 629 * Create a new {@link ShowHideMarkerText} action 630 * @param layer The layer to toggle the visible state of the marker text and icons 631 */ 625 632 public ShowHideMarkerText(MarkerLayer layer) { 626 633 super(tr("Show Text/Icons")); -
trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSetting.java
r16843 r18972 15 15 /** 16 16 * Setting to customize a MapPaint style. 17 * 17 * <p> 18 18 * Can be changed by the user in the right click menu of the mappaint style 19 19 * dialog. 20 * 20 * <p> 21 21 * Defined in the MapCSS style, e.g. 22 22 * <pre> … … 119 119 } 120 120 121 /** 122 * A setting for a style 123 * @param <T> The property type 124 */ 121 125 class PropertyStyleSetting<T> extends LabeledStyleSetting implements StyleSetting { 122 126 private final Class<T> type; -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r18829 r18972 40 40 @interface NullableArguments {} 41 41 42 /** 43 * Represents a function that accepts three arguments and produces a result. This is a specialization of {@link Function}. 44 * This is a functional interface whose functional method is {@link #apply(Object, Object, Object)}. 45 * @param <T> The type of the first argument 46 * @param <U> The type of the second argument 47 * @param <V> The type of the third argument 48 * @param <R> The type of the result of the function 49 * @see Function 50 * @see BiFunction 51 */ 42 52 @FunctionalInterface 43 53 public interface TriFunction<T, U, V, R> { 54 /** 55 * Call the function 56 * @param t The first argument 57 * @param u The second argument 58 * @param v The third argument 59 * @return The result of the function call 60 */ 44 61 R apply(T t, U u, V v); 45 62 } 46 63 64 /** 65 * Represents a function that accepts four arguments and produces a result. This is a specialization of {@link Function}. 66 * This is a functional interface whose functional method is {@link #apply(Object, Object, Object, Object)}. 67 * @param <T> The type of the first argument 68 * @param <U> The type of the second argument 69 * @param <V> The type of the third argument 70 * @param <W> The type of the fourth argument 71 * @param <R> The type of the result of the function 72 * @see Function 73 * @see BiFunction 74 */ 47 75 @FunctionalInterface 48 76 public interface QuadFunction<T, U, V, W, R> { 77 /** 78 * Call the function 79 * @param t The first argument 80 * @param u The second argument 81 * @param v The third argument 82 * @param w The fourth argument 83 * @return The result of the function call 84 */ 49 85 R apply(T t, U u, V v, W w); 50 86 } -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r18871 r18972 8 8 import java.awt.Dimension; 9 9 import java.awt.GraphicsEnvironment; 10 import java.awt.GridBagConstraints; 10 11 import java.awt.GridBagLayout; 11 12 import java.awt.GridLayout; … … 240 241 } 241 242 243 /** 244 * Parse actions from a name 245 */ 242 246 public static class ActionParser { 243 247 private final Map<String, Action> actions; … … 920 924 final JPanel left = new JPanel(new GridBagLayout()); 921 925 left.add(new JLabel(tr("Toolbar")), GBC.eol()); 922 left.add(new JScrollPane(selectedList), GBC.std().fill(G BC.BOTH));926 left.add(new JScrollPane(selectedList), GBC.std().fill(GridBagConstraints.BOTH)); 923 927 924 928 final JPanel right = new JPanel(new GridBagLayout()); 925 929 right.add(new JLabel(tr("Available")), GBC.eol()); 926 right.add(new JScrollPane(actionsTree), GBC.eol().fill(G BC.BOTH));930 right.add(new JScrollPane(actionsTree), GBC.eol().fill(GridBagConstraints.BOTH)); 927 931 928 932 final JPanel buttons = new JPanel(new GridLayout(6, 1)); … … 978 982 actionParametersTable.getColumnModel().getColumn(0).setHeaderValue(tr("Parameter name")); 979 983 actionParametersTable.getColumnModel().getColumn(1).setHeaderValue(tr("Parameter value")); 980 actionParametersPanel.add(actionParametersTable.getTableHeader(), GBC.eol().fill(G BC.HORIZONTAL));981 actionParametersPanel.add(actionParametersTable, GBC.eol().fill(G BC.BOTH).insets(0, 0, 0, 10));984 actionParametersPanel.add(actionParametersTable.getTableHeader(), GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 985 actionParametersPanel.add(actionParametersTable, GBC.eol().fill(GridBagConstraints.BOTH).insets(0, 0, 0, 10)); 982 986 actionParametersPanel.setVisible(false); 983 987 984 988 JPanel panel = gui.createPreferenceTab(this); 985 panel.add(p, GBC.eol().fill(G BC.BOTH));986 panel.add(actionParametersPanel, GBC.eol().fill(G BC.HORIZONTAL));989 panel.add(p, GBC.eol().fill(GridBagConstraints.BOTH)); 990 panel.add(actionParametersPanel, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 987 991 selected.removeAllElements(); 988 992 for (ActionDefinition actionDefinition: getDefinedActions()) { -
trunk/src/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreference.java
r18342 r18972 5 5 import static org.openstreetmap.josm.tools.I18n.tr; 6 6 7 import java.awt.GridBagConstraints; 7 8 import java.awt.GridBagLayout; 8 9 import java.io.IOException; … … 182 183 183 184 sources = new TaggingPresetSourceEditor(); 184 panel.add(sources, GBC.eol().fill(G BC.BOTH));185 panel.add(sources, GBC.eol().fill(GridBagConstraints.BOTH)); 185 186 PreferencePanel preferencePanel = gui.createPreferenceTab(this); 186 preferencePanel.add(panel, GBC.eol().fill(G BC.BOTH));187 preferencePanel.add(panel, GBC.eol().fill(GridBagConstraints.BOTH)); 187 188 sources.deferLoading(gui, preferencePanel); 188 189 gui.addValidationListener(validationListener); 189 190 } 190 191 192 /** 193 * An editor for what preset source locations are used 194 */ 191 195 public static class TaggingPresetSourceEditor extends SourceEditor { 192 196 197 /** 198 * Create a new {@link TaggingPresetSourceEditor} with the default providers 199 */ 193 200 public TaggingPresetSourceEditor() { 194 201 super(SourceType.TAGGING_PRESET, Config.getUrls().getJOSMWebsite()+"/presets", presetSourceProviders, true); -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java
r18438 r18972 5 5 6 6 import java.awt.BorderLayout; 7 import java.awt.GridBagConstraints; 7 8 import java.awt.GridBagLayout; 8 9 import java.awt.Insets; … … 120 121 this.setLayout(new GridBagLayout()); 121 122 JPanel p2 = new JPanel(new GridBagLayout()); 122 p2.add(cbInput, GBC.std().fill(G BC.HORIZONTAL).insets(0, 20, 5, 5));123 p2.add(cbInput, GBC.std().fill(GridBagConstraints.HORIZONTAL).insets(0, 20, 5, 5)); 123 124 p2.add(btnCheck, GBC.eol().insets(0, 20, 0, 5)); 124 this.add(p2, GBC.eol().fill(G BC.HORIZONTAL));125 this.add(p2, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 125 126 p2 = new JPanel(new GridBagLayout()); 126 p2.add(valStatus, GBC.std().anchor(G BC.WEST).weight(0.0001, 0));127 p2.add(errorsPanel, GBC.eol().fill(G BC.HORIZONTAL));128 this.add(p2, GBC.eol().fill(G BC.HORIZONTAL));127 p2.add(valStatus, GBC.std().anchor(GridBagConstraints.WEST).weight(0.0001, 0)); 128 p2.add(errorsPanel, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 129 this.add(p2, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 129 130 p2 = new JPanel(new GridBagLayout()); 130 131 p2.add(btnInfo, GBC.std().insets(0, 20, 0, 0)); 131 p2.add(GBC.glue(1, 0), GBC.eol().fill(GBC.HORIZONTAL)); 132 this.add(p2, GBC.eol().fill(GBC.HORIZONTAL)); 133 } 134 132 p2.add(GBC.glue(1, 0), GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 133 this.add(p2, GBC.eol().fill(GridBagConstraints.HORIZONTAL)); 134 } 135 136 /** 137 * Remember the current input 138 */ 135 139 public void rememberHistory() { 136 140 cbInput.addCurrentItemToHistory(); … … 139 143 } 140 144 145 /** 146 * A dialog for the available parameters of the custom projection 147 */ 141 148 public static class ParameterInfoDialog extends ExtendedDialog { 142 149 … … 212 219 } 213 220 PreferencePanel prefPanel = (PreferencePanel) panel; 214 String pref= prefPanel.cbInput.getEditorComponent().getText();221 String savePreferences = prefPanel.cbInput.getEditorComponent().getText(); 215 222 prefPanel.rememberHistory(); 216 return Collections.singleton( pref);223 return Collections.singleton(savePreferences); 217 224 } 218 225 -
trunk/src/org/openstreetmap/josm/gui/util/MultikeyShortcutAction.java
r17333 r18972 14 14 public interface MultikeyShortcutAction extends Action { 15 15 16 /** 17 * Information for a Multikey action 18 */ 16 19 class MultikeyInfo { 17 20 private final int index; … … 43 46 Shortcut getMultikeyShortcut(); 44 47 48 /** 49 * Execute a multi key action 50 * @param index The index to execute 51 * @param repeatLastAction {@code true} if the last action should be executed if no action is found for the given index. 52 */ 45 53 void executeMultikeyAction(int index, boolean repeatLastAction); 46 54 -
trunk/src/org/openstreetmap/josm/tools/template_engine/Tokenizer.java
r17333 r18972 8 8 /** 9 9 * This class converts a template string (stream of characters) into a stream of tokens. 10 * 10 * <p> 11 11 * The result of the tokenization (also called lexical analysis) serves as input for the 12 12 * parser {@link TemplateParser}. … … 14 14 public class Tokenizer { 15 15 16 /** 17 * A token for the parser 18 */ 16 19 public static class Token { 17 20 private final TokenType type; … … 19 22 private final String text; 20 23 24 /** 25 * A token 26 * @param type The token type 27 * @param position The position of the token 28 */ 21 29 public Token(TokenType type, int position) { 22 30 this(type, position, null); 23 31 } 24 32 33 /** 34 * A token 35 * @param type The token type 36 * @param position The position of the token 37 * @param text The text for the token 38 */ 25 39 public Token(TokenType type, int position, String text) { 26 40 this.type = type; … … 47 61 } 48 62 63 /** 64 * The token type 65 */ 49 66 public enum TokenType { CONDITION_START, VARIABLE_START, CONTEXT_SWITCH_START, END, PIPE, APOSTROPHE, TEXT, EOF } 50 67 … … 75 92 } 76 93 94 /** 95 * Get the next token 96 * @return The next token 97 * @throws ParseError if there is an error getting the next token 98 */ 77 99 public Token nextToken() throws ParseError { 78 100 if (currentToken != null) { … … 128 150 } 129 151 152 /** 153 * Look at the next token 154 * @return The next token 155 * @throws ParseError if there is an error getting the next token 156 */ 130 157 public Token lookAhead() throws ParseError { 131 158 if (currentToken == null) { … … 135 162 } 136 163 164 /** 165 * Skip until we hit a character 166 * @param lastChar The last character to skip 167 * @return A token with the skipped characters 168 */ 137 169 public Token skip(char lastChar) { 138 170 currentToken = null; -
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/AssertionsInEDT.java
r18694 r18972 22 22 @ExtendWith(AssertionsInEDT.AssertionsExtension.class) 23 23 public @interface AssertionsInEDT { 24 /** 25 * Check for assertions in the EDT 26 */ 24 27 class AssertionsExtension implements BeforeEachCallback { 25 28 private Runnable edtAssertionMockingRunnable = EDTAssertionMocker::new; -
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/FakeImagery.java
r18893 r18972 114 114 } 115 115 116 /** 117 * A wiremock extension for fake imagery 118 */ 116 119 class FakeImageryWireMockExtension extends WireMockExtension { 117 120 -
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/HTTPS.java
r18893 r18972 31 31 @ExtendWith(HTTPS.HTTPSExtension.class) 32 32 public @interface HTTPS { 33 /** 34 * Initialize HTTPS support 35 */ 33 36 class HTTPSExtension implements BeforeEachCallback { 34 37 private static boolean initialized; -
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/LayerManager.java
r18649 r18972 25 25 @ExtendWith(LayerManager.LayerManagerExtension.class) 26 26 public @interface LayerManager { 27 /** 28 * Clean the layer environment 29 */ 27 30 class LayerManagerExtension implements BeforeEachCallback, AfterEachCallback { 28 31 @Override -
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/Logging.java
r18694 r18972 14 14 @Target({ElementType.TYPE, ElementType.METHOD}) 15 15 public @interface Logging { 16 /** 17 * Set up loggers for testing 18 */ 16 19 class LoggingExtension implements BeforeEachCallback { 17 20 -
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/MapPaintStyles.java
r18870 r18972 26 26 @ExtendWith(MapPaintStyles.MapPaintStylesExtension.class) 27 27 public @interface MapPaintStyles { 28 /** 29 * Set up the default paintstyles 30 */ 28 31 class MapPaintStylesExtension implements BeforeEachCallback { 29 32 private static int lastHashcode; -
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/MeasurementSystem.java
r18893 r18972 42 42 String value() default "Metric"; 43 43 44 /** 45 * Set up the system of measurement 46 */ 44 47 class SystemOfMeasurementExtension implements BeforeEachCallback { 45 48 @Override -
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/OsmApi.java
r18821 r18972 31 31 public @interface OsmApi { 32 32 APIType value() default APIType.NONE; 33 34 /** 35 * The API type to set up 36 */ 33 37 enum APIType { 34 38 /** Don't use any API */ … … 40 44 } 41 45 46 /** 47 * Set up {@link org.openstreetmap.josm.io.OsmApi} for testing 48 */ 42 49 class OsmApiExtension implements BeforeAllCallback, BeforeEachCallback, AfterEachCallback { 43 50 @Override -
trunk/test/unit/org/openstreetmap/josm/testutils/annotations/ProjectionNadGrids.java
r18870 r18972 28 28 @ExtendWith(ProjectionNadGrids.NadGridsExtension.class) 29 29 public @interface ProjectionNadGrids { 30 /** 31 * Set up the NAD grids for testing 32 */ 30 33 class NadGridsExtension implements BeforeEachCallback { 31 34 @Override
Note:
See TracChangeset
for help on using the changeset viewer.