Skip to content

Commit

Permalink
Prepare for 3.0.5 release. Also get builds working in Java 11, even t…
Browse files Browse the repository at this point in the history
…hough Maven Central artifacts are still built with Java 8
  • Loading branch information
bobbylight committed Jan 18, 2020
1 parent 8ae7b6a commit da75dd9
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
/**
* Base class for possible completions. Most, if not all, {@link Completion}
* implementations can extend this class. It remembers the
* <tt>CompletionProvider</tt> that returns this completion, and also implements
* <tt>Comparable</tt>, allowing such completions to be compared
* {@code CompletionProvider} that returns this completion, and also implements
* {@code Comparable}, allowing such completions to be compared
* lexicographically (ignoring case).<p>
*
* This implementation assumes the input text and replacement text are the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public AbstractCompletionProvider() {
*
* @param c The completion to add.
* @throws IllegalArgumentException If the completion's provider isn't
* this <tt>CompletionProvider</tt>.
* this {@code CompletionProvider}.
* @see #addCompletions(List)
* @see #removeCompletion(Completion)
* @see #clear()
Expand All @@ -75,7 +75,7 @@ public void addCompletion(Completion c) {
* @param completions The completions to add. This cannot be
* <code>null</code>.
* @throws IllegalArgumentException If a completion's provider isn't
* this <tt>CompletionProvider</tt>.
* this {@code CompletionProvider}.
* @see #addCompletion(Completion)
* @see #removeCompletion(Completion)
* @see #clear()
Expand Down Expand Up @@ -114,7 +114,7 @@ protected void checkProviderAndAdd(Completion c) {

/**
* Removes all completions from this provider. This does not affect
* the parent <tt>CompletionProvider</tt>, if there is one.
* the parent {@code CompletionProvider}, if there is one.
*
* @see #addCompletion(Completion)
* @see #addCompletions(List)
Expand All @@ -126,12 +126,12 @@ public void clear() {


/**
* Returns a list of <tt>Completion</tt>s in this provider with the
* Returns a list of {@code Completion}s in this provider with the
* specified input text.
*
* @param inputText The input text to search for.
* @return A list of {@link Completion}s, or <code>null</code> if there
* are no matching <tt>Completion</tt>s.
* are no matching {@code Completion}s.
*/
@SuppressWarnings("unchecked")
public List<Completion> getCompletionByInputText(String inputText) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ private void uninstallKeyBindings() {


/**
* Updates the <tt>LookAndFeel</tt> of this window and the description
* Updates the {@code LookAndFeel} of this window and the description
* window.
*/
public void updateUI() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public ListCellRenderer<Object> getParamChoicesRenderer() {
* Returns the text to replace with in the document. This is a "last-chance"
* hook for subclasses to make special modifications to the completion text
* inserted. The default implementation simply returns
* <tt>c.getReplacementText()</tt>. You usually will not need to modify this
* {@code c.getReplacementText()}. You usually will not need to modify this
* method.
*
* @param c The completion being inserted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void setSummary(String summary) {
*
* <code>getInputText() + " - " + shortDesc</code>
*
* otherwise, it will return <tt>getInputText()</tt>.
* otherwise, it will return {@code getInputText()}.
*
* @return A string representation of this completion.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

/**
* Represents a completion choice. A {@link CompletionProvider} returns lists
* of objects implementing this interface. A <tt>Completion</tt> contains the
* of objects implementing this interface. A {@code Completion} contains the
* following information:
*
* <ul>
Expand All @@ -27,7 +27,7 @@
* can be displayed in a helper "tooltip"-style window beside the
* completion list. This may be <code>null</code>. It may also be
* lazily generated to cut down on memory usage.
* <li>The <tt>CompletionProvider</tt> that returned this completion.
* <li>The {@code CompletionProvider} that returned this completion.
* <li>Tool tip text that can be displayed when a mouse hovers over this
* completion in a text component.
* </ul>
Expand Down Expand Up @@ -137,11 +137,11 @@ public interface Completion extends Comparable<Completion> {
* completion.<p>
*
* Note that for this functionality to be enabled, a
* <tt>JTextComponent</tt> must be registered with the
* <tt>ToolTipManager</tt>, and the text component must know to search
* {@code JTextComponent} must be registered with the
* {@code ToolTipManager}, and the text component must know to search
* for this value. In the case of an
* <a href="http://fifesoft.com/rsyntaxtextarea">RSyntaxTextArea</a>, this
* can be done with a <tt>org.fife.ui.rtextarea.ToolTipSupplier</tt> that
* can be done with a {@code org.fife.ui.rtextarea.ToolTipSupplier} that
* calls into
* {@link CompletionProvider#getCompletionsAt(JTextComponent, java.awt.Point)}.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public interface CompletionProvider {
* mouse over completed text.
*
* @param comp The text component.
* @param p The position, usually from a <tt>MouseEvent</tt>.
* @param p The position, usually from a {@code MouseEvent}.
* @return The completions, or an empty list if there are none.
*/
List<Completion> getCompletionsAt(JTextComponent comp, Point p);
Expand Down Expand Up @@ -186,14 +186,14 @@ public interface CompletionProvider {
* and methods will not have their parameters auto-completed.
*
* @param listStart The character that marks the beginning of a list of
* parameters, such as '<tt>(</tt>' in C or Java.
* parameters, such as '{@code (}' in C or Java.
* @param separator Text that should separate parameters in a parameter
* list when one is inserted. For example, "<tt>, </tt>".
* list when one is inserted. For example, "{@code , }".
* @param listEnd The character that marks the end of a list of parameters,
* such as '<tt>)</tt>' in C or Java.
* @throws IllegalArgumentException If either <tt>listStart</tt> or
* <tt>listEnd</tt> is not printable ASCII, or if
* <tt>separator</tt> is <code>null</code> or an empty string.
* such as '{@code )}' in C or Java.
* @throws IllegalArgumentException If either {@code listStart} or
* {@code listEnd} is not printable ASCII, or if
* {@code separator} is <code>null</code> or an empty string.
* @see #clearParameterizedCompletionParams()
*/
void setParameterizedCompletionParams(char listStart,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

/**
* A base class for all standard completion providers. This class implements
* functionality that should be sharable across all <tt>CompletionProvider</tt>
* functionality that should be sharable across all {@code CompletionProvider}
* implementations.
*
* @author Robert Futrell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class CompletionXMLParser extends DefaultHandler {
/**
* If specified in the XML, this class will be used instead of
* {@link FunctionCompletion} when appropriate. This class should extend
* <tt>FunctionCompletion</tt>, or stuff will break.
* {@code FunctionCompletion}, or stuff will break.
*/
private String funcCompletionType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class DefaultCompletionProvider extends AbstractCompletionProvider {
/**
* Used to speed up {@link #getCompletionsAt(JTextComponent, Point)},
* since this may be called multiple times in succession (this is usually
* called by <tt>JTextComponent.getToolTipText()</tt>, and if the user
* called by {@code JTextComponent.getToolTipText()}, and if the user
* wiggles the mouse while a tool tip is displayed, this method gets
* repeatedly called. It can be costly so we try to speed it up a tad).
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class DelegatingCellRenderer extends DefaultListCellRenderer {

/**
* The renderer to fall back on if one isn't specified by a provider.
* This is usually <tt>this</tt>.
* This is usually {@code this}.
*/
private ListCellRenderer<Object> fallback;

Expand Down Expand Up @@ -68,7 +68,7 @@ public Component getListCellRendererComponent(JList<?> list, Object value,
* Sets the fallback cell renderer.
*
* @param fallback The fallback cell renderer. If this is
* <code>null</code>, <tt>this</tt> will be used.
* <code>null</code>, {@code this} will be used.
* @see #getFallbackCellRenderer()
*/
public void setFallbackCellRenderer(ListCellRenderer<Object> fallback) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
* for example.<p>
*
* This provider also implements the
* <tt>org.fife.ui.rtextarea.ToolTipSupplier</tt> interface, which allows it
* {@code org.fife.ui.rtextarea.ToolTipSupplier} interface, which allows it
* to display tooltips for completion choices. Thus the standard
* {@link VariableCompletion} and {@link FunctionCompletion} completions should
* be able to display tooltips with the variable declaration or function
* definition (provided the <tt>RSyntaxTextArea</tt> was registered with the
* <tt>javax.swing.ToolTipManager</tt>).
* definition (provided the {@code RSyntaxTextArea} was registered with the
* {@code javax.swing.ToolTipManager}).
*
* @author Robert Futrell
* @version 1.0
Expand Down Expand Up @@ -400,8 +400,8 @@ public void setStringCompletionProvider(CompletionProvider provider) {
/**
* Returns the tool tip to display for a mouse event.<p>
*
* For this method to be called, the <tt>RSyntaxTextArea</tt> must be
* registered with the <tt>javax.swing.ToolTipManager</tt> like so:
* For this method to be called, the {@code RSyntaxTextArea} must be
* registered with the {@code javax.swing.ToolTipManager} like so:
*
* <pre>
* ToolTipManager.sharedInstance().registerComponent(textArea);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public void setVisible(boolean visible) {


/**
* Updates the <tt>LookAndFeel</tt> of this window.
* Updates the {@code LookAndFeel} of this window.
*/
public void updateUI() {
SwingUtilities.updateComponentTreeUI(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public boolean updateText(int selectedParam) {


/**
* Updates the <tt>LookAndFeel</tt> of this window and the description
* Updates the {@code LookAndFeel} of this window and the description
* window.
*/
public void updateUI() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
/**
* A completion for a variable (or constant) in a programming language.<p>
*
* This completion type uses its <tt>shortDescription</tt> property as part of
* This completion type uses its {@code shortDescription} property as part of
* its summary returned by {@link #getSummary()}; for this reason, it may be
* a little longer (even much longer), if desired, than what is recommended
* for <tt>BasicCompletion</tt>s (where the <tt>shortDescription</tt> is used
* in {@link #toString()} for <tt>ListCellRenderers</tt>).
* for {@code BasicCompletion}s (where the {@code shortDescription} is used
* in {@link #toString()} for {@code ListCellRenderers}).
*
* @author Robert Futrell
* @version 1.0
Expand Down Expand Up @@ -112,11 +112,11 @@ public String getSummary() {
* completion.<p>
*
* Note that for this functionality to be enabled, a
* <tt>JTextComponent</tt> must be registered with the
* <tt>ToolTipManager</tt>, and the text component must know to search
* {@code JTextComponent} must be registered with the
* {@code ToolTipManager}, and the text component must know to search
* for this value. In the case of an
* <a href="http://fifesoft.com/rsyntaxtextarea">RSyntaxTextArea</a>, this
* can be done with a <tt>org.fife.ui.rtextarea.ToolTipSupplier</tt> that
* can be done with a {@code org.fife.ui.rtextarea.ToolTipSupplier} that
* calls into
* {@link CompletionProvider#getCompletionsAt(JTextComponent, java.awt.Point)}.
*
Expand Down
2 changes: 1 addition & 1 deletion config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
</module>

<module name="SuppressionFilter">
<property name="file" value="config/checkstyle/acSuppressions.xml"/>
<property name="file" value="${config_loc}/acSuppressions.xml"/>
</module>

</module>
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Note that Maven- and signing-related properties are in <gradle-user-home>/gradle.properties
javaVersion=1.8
version=3.0.5-SNAPSHOT
version=3.0.5

0 comments on commit da75dd9

Please sign in to comment.