]> source.dussan.org Git - jgit.git/commitdiff
Declare ConfigConstants and GitProtocolConstants final 34/127434/2
authorMatthias Sohn <matthias.sohn@sap.com>
Tue, 14 Aug 2018 22:31:37 +0000 (00:31 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 14 Aug 2018 22:32:41 +0000 (00:32 +0200)
This avoids that we have to suppress API errors whenever we add a new
constant in a minor release. This change affects implementors only which
is ok to do in a minor release following OSGi semantic versioning rules.

Change-Id: Iece841886fbe00f1ba567c5ff68093c542ba265e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/.settings/.api_filters
org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/GitProtocolConstants.java

index e51bf20c22ab58ebad637b276747a8fe271ee1be..b7b49bc658c7b469594ba457b04695e721e73a42 100644 (file)
@@ -1,5 +1,12 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <component id="org.eclipse.jgit" version="2">
+    <resource path="src/org/eclipse/jgit/lib/ConfigConstants.java" type="org.eclipse.jgit.lib.ConfigConstants">
+        <filter id="337768515">
+            <message_arguments>
+                <message_argument value="org.eclipse.jgit.lib.ConfigConstants"/>
+            </message_arguments>
+        </filter>
+    </resource>
     <resource path="src/org/eclipse/jgit/lib/ObjectIdSerializer.java" type="org.eclipse.jgit.lib.ObjectIdSerializer">
         <filter id="1141899266">
             <message_arguments>
             </message_arguments>
         </filter>
     </resource>
+    <resource path="src/org/eclipse/jgit/transport/GitProtocolConstants.java" type="org.eclipse.jgit.transport.GitProtocolConstants">
+        <filter id="337768515">
+            <message_arguments>
+                <message_argument value="org.eclipse.jgit.transport.GitProtocolConstants"/>
+            </message_arguments>
+        </filter>
+    </resource>
 </component>
index 5a790350b11cb7911d8f7217454df2ad63dab11a..d4a0280da6ee0fa45cb057945ae9b5111b053a30 100644 (file)
@@ -49,7 +49,7 @@ package org.eclipse.jgit.lib;
  * configuration keys
  */
 @SuppressWarnings("nls")
-public class ConfigConstants {
+public final class ConfigConstants {
        /** The "core" section */
        public static final String CONFIG_CORE_SECTION = "core";
 
index 86740d42c5a290e0a2a0bab099a9d9673a8424f3..760ac6c1d705d751540749b15c90e617452aef89 100644 (file)
@@ -50,7 +50,7 @@ package org.eclipse.jgit.transport;
  *
  * @since 3.2
  */
-public class GitProtocolConstants {
+public final class GitProtocolConstants {
        /**
         * Include tags if we are also including the referenced objects.
         *