Skip to content

Commit

Permalink
Converting URLs in comments, etc. from http to https where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbylight committed Oct 29, 2022
1 parent f454e60 commit c1741b1
Show file tree
Hide file tree
Showing 48 changed files with 146 additions and 165 deletions.
2 changes: 1 addition & 1 deletion RSyntaxTextArea/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ publishing {
'Features include syntax highlighting for 40+ languages, code folding, code completion, ' +
'regex find and replace, macros, code templates, undo/redo, line numbering and bracket ' +
'matching.'
url = 'http://www.fifesoft.com/rsyntaxtextarea/'
url = 'https://github.com/bobbylight/rsyntaxtextarea'
inceptionYear = '2003'
packaging = 'jar'
licenses {
Expand Down
9 changes: 3 additions & 6 deletions RSyntaxTextArea/src/main/dist/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ robert -at- fifesoft dot com.
It allows applications to easily embed syntax highlighting for most common
programming languages. Most other standard programmer's editor features are
built-in: auto-indent, bracket matching, undo/redo, etc. Auto-completion
is available as an add-on library (see http://fifesoft.com/autocomplete).
is available as an add-on library (see https://github.com/bobbylight/AutoComplete).

* License

Expand All @@ -29,11 +29,8 @@ robert -at- fifesoft dot com.
* Feedback

I hope you find RSyntaxTextArea useful. Bug reports, feature requests, and
just general questions are always welcome. Ways you can submit feedback:

* http://forum.fifesoft.com (preferred)
Has a forum for RSyntaxTextArea and related projects, where you can
ask questions and get feedback quickly.
just general questions are always welcome. You can submit feedback via the
GitHub site:

* https://github.com/bobbylight/RSyntaxTextArea
Add a bug or enhancement request, peruse the Wiki, etc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
* events and respond accordingly.<p>
*
* See the <code>RSTALanguageSupport</code> project at
* <a href="http://fifesoft.com">http://fifesoft.com</a> for some
* <a href="https://github.com/bobbylight/RSTALanguageSupport">
* https://github.com/bobbylight/RSTALanguageSupport</a> for some
* <code>LanguageSupport</code> implementations that may broadcast these
* events. Note that if an RSTA/LanguageSupport does not support broadcasting
* these events, the listener will simply never receive any notifications.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* while <em>not</em> on the EDT could cause problems.<p>
*
* For more flexible boilerplate code insertion, consider using the
* <a href="http://javadoc.fifesoft.com/autocomplete/org/fife/ui/autocomplete/TemplateCompletion.html">
* <a href="https://javadoc.fifesoft.com/autocomplete/org/fife/ui/autocomplete/TemplateCompletion.html">
* TemplateCompletion class</a> in the
* <a href="https://github.com/bobbylight/AutoComplete">AutoComplete
* add-on library</a>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/*
* 12/01/2014
*
* Copyright (C) 2013 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
*
* This library is distributed under a modified BSD license. See the included
* LICENSE file for details.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/*
* 02/16/2012
*
* Copyright (C) 2013 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
*
* This library is distributed under a modified BSD license. See the included
* LICENSE file for details.
*/
Expand All @@ -15,7 +11,7 @@
* Generates hyperlinks in a document. If one of these is installed on an
* <code>RSyntaxTextArea</code> it is queried when the mouse is moved and
* hyperlinks are enabled. If the user is not hovering over a "real" hyperlink
* (e.g. "http://www.google.com"), the link generator is asked if a text region
* (e.g. "https://www.google.com"), the link generator is asked if a text region
* at the mouse position should be considered a hyperlink. If so, a result
* object is returned, describing exactly what region of text is the link, and
* where it goes to.<p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/*
* 02/16/2012
*
* Copyright (C) 2013 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
*
* This library is distributed under a modified BSD license. See the included
* LICENSE file for details.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* A hook allowing hosting applications to decorate JWindows created by the
* AutoComplete library. For example, you could use the
* <a href="http://jgoodies.com/">JGoodies</a> library to add drop shadows
* <a href="https://www.jgoodies.com/">JGoodies</a> library to add drop shadows
* to the windows.
*
* @author Robert Futrell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ public int getSecondaryLanguageCount() {
* of <code>RSyntaxTextArea</code>.<p>
*
* For more flexible boilerplate code insertion, consider using the
* <a href="http://javadoc.fifesoft.com/autocomplete/org/fife/ui/autocomplete/TemplateCompletion.html">
* <a href="https://javadoc.fifesoft.com/autocomplete/org/fife/ui/autocomplete/TemplateCompletion.html">
* TemplateCompletion class</a> in the
* <a href="https://github.com/bobbylight/AutoComplete">AutoComplete
* add-on library</a>.
Expand Down Expand Up @@ -2273,7 +2273,8 @@ public static synchronized boolean saveTemplates() {
* Note that basic users of <code>RSyntaxTextArea</code> will not call this
* method directly; rather, it is usually called by instances of
* <code>LanguageSupport</code> in the <code>RSTALanguageSupport</code>
* library. See <a href="http://fifesoft.com">http://fifesoft.com</a>
* library. See <a href="https://github.com/bobbylight/RSTALanguageSupport">
* https://github.com/bobbylight/RSTALanguageSupport</a>
* for more information about this library.
*
* @param min The "minimum" line in the active line range, or
Expand Down Expand Up @@ -3084,7 +3085,7 @@ public static synchronized boolean setTemplateDirectory(String dir) {
* uniformity among all text areas in an application.<p>
*
* For more flexible boilerplate code insertion, consider using the
* <a href="http://javadoc.fifesoft.com/autocomplete/org/fife/ui/autocomplete/TemplateCompletion.html">
* <a href="https://javadoc.fifesoft.com/autocomplete/org/fife/ui/autocomplete/TemplateCompletion.html">
* TemplateCompletion class</a> in the
* <a href="https://github.com/bobbylight/AutoComplete">AutoComplete
* add-on library</a>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/*
* 02/16/2012
*
* Copyright (C) 2013 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
*
* This library is distributed under a modified BSD license. See the included
* LICENSE file for details.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public void save(OutputStream out) throws IOException {

DOMSource source = new DOMSource(doc);
// Use a writer instead of OutputStream to allow pretty printing.
// See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6337981
// See https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6337981
StreamResult result = new StreamResult(new PrintWriter(
new UnicodeWriter(bout, "UTF-8")));
TransformerFactory transFac = TransformerFactory.newInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*
* Note that this class does not listen for all events on the system clipboard,
* because that functionality is pretty fragile. See
* <a href="http://stackoverflow.com/questions/5484927/listen-to-clipboard-changes-check-ownership">
* http://stackoverflow.com/questions/5484927/listen-to-clipboard-changes-check-ownership</a>
* <a href="https://stackoverflow.com/questions/5484927/listen-to-clipboard-changes-check-ownership">
* https://stackoverflow.com/questions/5484927/listen-to-clipboard-changes-check-ownership</a>
* for more information.
*
* @author Robert Futrell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ private void readObject(ObjectInputStream s)
s.defaultReadObject();

// UndoManagers cannot be serialized without Exceptions. See
// http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4275892
// https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4275892
undoManager = createUndoManager();
getDocument().addUndoableEditListener(undoManager);

Expand Down Expand Up @@ -1712,7 +1712,7 @@ public void undoLastAction() {
private void writeObject(ObjectOutputStream s) throws IOException {

// UndoManagers cannot be serialized without Exceptions. See
// http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4275892
// https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4275892
getDocument().removeUndoableEditListener(undoManager);
s.defaultWriteObject();
getDocument().addUndoableEditListener(undoManager);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,6 @@ public boolean isMarginLineEnabled() {
* @return Whether the OS we're running on is OS X.
*/
public static boolean isOSX() {
// Recommended at:
// http://developer.apple.com/mac/library/technotes/tn2002/tn2110.html
String osName = System.getProperty("os.name").toLowerCase();
return osName.startsWith("mac os x");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,7 @@ public void actionPerformedImpl(ActionEvent e, RTextArea textArea) {
if(offs >= curPara.getEndOffset() &&
oldOffs != curPara.getEndOffset() - 1) {
// we should first move to the end of current paragraph
// http://bugs.sun.com/view_bug.do?bug_id=4278839
// https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4278839
offs = curPara.getEndOffset() - 1;
}
} catch (BadLocationException ble) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public void setUnsafe(int index, int value) {
* not usually make any expensive method calls (since their callers will
* usually not pass illegal arguments to them).
*
* See <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5103956">
* See <a href="https://bugs.java.com/bugdatabase/view_bug.do?bug_id=5103956">
* this Sun bug report</a> for more information.
*
* @param index The invalid index.
Expand All @@ -395,7 +395,7 @@ private void throwException(int index) {
* inlined, as well as not usually make any expensive method calls (since
* their callers will usually not pass illegal arguments to them).
*
* See <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5103956">
* See <a href="https://bugs.java.com/bugdatabase/view_bug.do?bug_id=5103956">
* this Sun bug report</a> for more information.
*
* @param index The invalid index.
Expand All @@ -413,7 +413,7 @@ private void throwException2(int index) {
* inlined, as well as not usually make any expensive method calls (since
* their callers will usually not pass illegal arguments to them).
*
* See <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5103956">
* See <a href="https://bugs.java.com/bugdatabase/view_bug.do?bug_id=5103956">
* this Sun bug report</a> for more information.
*
* @param fromIndex The from-index.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ void testJS_EolComments_URL() {
String[] eolCommentLiterals = {
// Note: The 0-length token at the end of the first example is a
// minor bug/performance thing
"// Hello world http://www.sas.com",
"// Hello world http://www.sas.com extra",
"// Hello world https://www.sas.com",
"// Hello world https://www.sas.com extra",
};

for (String code : eolCommentLiterals) {
Expand All @@ -185,7 +185,7 @@ void testJS_EolComments_URL() {
token = token.getNextToken();
Assertions.assertTrue(token.isHyperlink());
Assertions.assertEquals(TokenTypes.COMMENT_EOL, token.getType());
Assertions.assertEquals("http://www.sas.com", token.getLexeme());
Assertions.assertEquals("https://www.sas.com", token.getLexeme());

token = token.getNextToken();
// Note: The 0-length token at the end of the first example is a
Expand Down Expand Up @@ -416,7 +416,7 @@ void testJS_MultiLineComments_fromPreviousLine() {
void testJS_MultiLineComments_URL() {

String[] mlcLiterals = {
"/* Hello world http://www.sas.com */",
"/* Hello world https://www.sas.com */",
};

for (String code : mlcLiterals) {
Expand All @@ -430,7 +430,7 @@ void testJS_MultiLineComments_URL() {
token = token.getNextToken();
Assertions.assertTrue(token.isHyperlink());
Assertions.assertEquals(TokenTypes.COMMENT_MULTILINE, token.getType());
Assertions.assertEquals("http://www.sas.com", token.getLexeme());
Assertions.assertEquals("https://www.sas.com", token.getLexeme());

token = token.getNextToken();
Assertions.assertEquals(TokenTypes.COMMENT_MULTILINE, token.getType());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void testEolComments() {
void testEolComments_URL() {

String[] eolCommentLiterals = {
"; Hello world http://www.sas.com",
"; Hello world https://www.sas.com",
};

for (String code : eolCommentLiterals) {
Expand All @@ -93,7 +93,7 @@ void testEolComments_URL() {
token = token.getNextToken();
Assertions.assertTrue(token.isHyperlink());
Assertions.assertEquals(TokenTypes.COMMENT_EOL, token.getType());
Assertions.assertEquals("http://www.sas.com", token.getLexeme());
Assertions.assertEquals("https://www.sas.com", token.getLexeme());

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void testEolComments_continuedFromPreviousLine() {
void testEolComments_URL() {

String[] eolCommentLiterals = {
"// Hello world http://www.sas.com",
"// Hello world https://www.sas.com",
};

for (String code : eolCommentLiterals) {
Expand All @@ -148,7 +148,7 @@ void testEolComments_URL() {
token = token.getNextToken();
Assertions.assertTrue(token.isHyperlink());
Assertions.assertEquals(TokenTypes.COMMENT_EOL, token.getType());
Assertions.assertEquals("http://www.sas.com", token.getLexeme());
Assertions.assertEquals("https://www.sas.com", token.getLexeme());

}

Expand Down Expand Up @@ -523,7 +523,7 @@ void testMultiLineComments_fromPreviousLine() {
void testMultiLineComments_URL() {

String[] mlcLiterals = {
"/* Hello world http://www.sas.com */",
"/* Hello world https://www.sas.com */",
};

for (String code : mlcLiterals) {
Expand All @@ -537,7 +537,7 @@ void testMultiLineComments_URL() {
token = token.getNextToken();
Assertions.assertTrue(token.isHyperlink());
Assertions.assertEquals(TokenTypes.COMMENT_MULTILINE, token.getType());
Assertions.assertEquals("http://www.sas.com", token.getLexeme());
Assertions.assertEquals("https://www.sas.com", token.getLexeme());

token = token.getNextToken();
Assertions.assertEquals(TokenTypes.COMMENT_MULTILINE, token.getType());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ void testCss_lessLineComment_lessEnabled_url() {
String[] eolCommentLiterals = {
"// Hello world file://test.txt",
"// Hello world ftp://ftp.google.com",
"// Hello world http://www.google.com",
"// Hello world https://www.google.com",
"// Hello world https://www.google.com",
"// Hello world www.google.com"
};
Expand Down Expand Up @@ -354,7 +354,7 @@ void testCss_multiLineComment_URL() {
String[] comments = {
"/* Hello world file://test.txt */",
"/* Hello world ftp://ftp.google.com */",
"/* Hello world http://www.google.com */",
"/* Hello world https://www.google.com */",
"/* Hello world https://www.google.com */",
"/* Hello world www.google.com */"
};
Expand Down Expand Up @@ -433,7 +433,7 @@ void testCss_propertyBlock_property_lessLineComment_lessEnabled_url() {
String[] eolCommentLiterals = {
"// Hello world file://test.txt",
"// Hello world ftp://ftp.google.com",
"// Hello world http://www.google.com",
"// Hello world https://www.google.com",
"// Hello world https://www.google.com",
"// Hello world www.google.com"
};
Expand Down Expand Up @@ -569,7 +569,7 @@ void testCss_propertyBlock_value_lessLineComment_lessEnabled_url() {
String[] eolCommentLiterals = {
"// Hello world file://test.txt",
"// Hello world ftp://ftp.google.com",
"// Hello world http://www.google.com",
"// Hello world https://www.google.com",
"// Hello world https://www.google.com",
"// Hello world www.google.com"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ void testMultiLineComments_fromPreviousLine() {
void testMultiLineComments_URL() {

String[] mlcLiterals = {
"/* Hello world http://www.sas.com */",
"/* Hello world https://www.sas.com */",
};

for (String code : mlcLiterals) {
Expand All @@ -278,7 +278,7 @@ void testMultiLineComments_URL() {
token = token.getNextToken();
Assertions.assertTrue(token.isHyperlink());
Assertions.assertEquals(TokenTypes.COMMENT_MULTILINE, token.getType());
Assertions.assertEquals("http://www.sas.com", token.getLexeme());
Assertions.assertEquals("https://www.sas.com", token.getLexeme());

token = token.getNextToken();
Assertions.assertEquals(TokenTypes.COMMENT_MULTILINE, token.getType());
Expand Down
Loading

0 comments on commit c1741b1

Please sign in to comment.