Advertisement
Guest User

Untitled

a guest
May 3rd, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 6.88 KB | None | 0 0
  1. @@Index: core/src/main/java/hudson/model/Hudson.java
  2. ===================================================================
  3. --- core/src/main/java/hudson/model/Hudson.java (revision 27516)
  4. +++ core/src/main/java/hudson/model/Hudson.java (working copy)
  5. @@ -61,8 +61,6 @@
  6.  import hudson.lifecycle.RestartNotSupportedException;
  7.  import hudson.model.Descriptor.FormException;
  8.  import hudson.model.listeners.ItemListener;
  9. -import hudson.model.listeners.JobListener;
  10. -import hudson.model.listeners.JobListener.JobListenerAdapter;
  11.  import hudson.model.listeners.SCMListener;
  12.  import hudson.model.listeners.SaveableListener;
  13.  import hudson.remoting.Channel;
  14. @@ -940,26 +938,6 @@
  15.      }
  16.  
  17.      /**
  18. -     * Adds a new {@link JobListener}.
  19. -     *
  20. -     * @deprecated since 2007-01-04.
  21. -     *      Use {@code getJobListeners().add(l)} instead.
  22. -     */
  23. -    public void addListener(JobListener l) {
  24. -        itemListeners.add(new JobListenerAdapter(l));
  25. -    }
  26. -
  27. -    /**
  28. -     * Deletes an existing {@link JobListener}.
  29. -     *
  30. -     * @deprecated since 2007-01-04.
  31. -     *      Use {@code getJobListeners().remove(l)} instead.
  32. -     */
  33. -    public boolean removeListener(JobListener l ) {
  34. -        return itemListeners.remove(new JobListenerAdapter(l));
  35. -    }
  36. -
  37. -    /**
  38.       * Gets all the installed {@link ItemListener}s.
  39.       *
  40.       * @deprecated as of 1.286.
  41.  
  42. @@Index: core/src/main/java/hudson/model/DirectoryBrowserSupport.java
  43. ===================================================================
  44. --- core/src/main/java/hudson/model/DirectoryBrowserSupport.java    (revision 27516)
  45. +++ core/src/main/java/hudson/model/DirectoryBrowserSupport.java    (working copy)
  46. @@ -73,14 +73,6 @@
  47.      private String indexFileName = "index.html";
  48.  
  49.      /**
  50. -     * @deprecated since 2007-08-12.
  51. -     *      Use {@link #DirectoryBrowserSupport(ModelObject, FilePath, String, String, boolean)}
  52. -     */
  53. -    public DirectoryBrowserSupport(ModelObject owner) {
  54. -        this(owner,owner.getDisplayName());
  55. -    }
  56. -
  57. -    /**
  58.       * @deprecated as of 1.297
  59.       *      Use {@link #DirectoryBrowserSupport(ModelObject, FilePath, String, String, boolean)}
  60.       */
  61.  
  62. @@Index: core/src/main/java/hudson/model/Descriptor.java
  63. ===================================================================
  64. --- core/src/main/java/hudson/model/Descriptor.java (revision 27516)
  65. +++ core/src/main/java/hudson/model/Descriptor.java (working copy)
  66. @@ -477,20 +482,10 @@
  67.  
  68.      /**
  69.       * @deprecated
  70. -     *      As of 1.64. Use {@link #configure(StaplerRequest)}.
  71. -     */
  72. -    @Deprecated
  73. -    public boolean configure( HttpServletRequest req ) throws FormException {
  74. -        return true;
  75. -    }
  76. -
  77. -    /**
  78. -     * @deprecated
  79.       *      As of 1.239, use {@link #configure(StaplerRequest, JSONObject)}.
  80.       */
  81.      public boolean configure( StaplerRequest req ) throws FormException {
  82. -        // compatibility
  83. -        return configure( (HttpServletRequest) req );
  84. +        return true;
  85.      }
  86.  
  87.      /**
  88. @@ -560,27 +555,12 @@
  89.              return;
  90.  
  91.          try {
  92. -            Object o = file.unmarshal(this);
  93. -            if(o instanceof Map) {
  94. -                // legacy format
  95. -                @SuppressWarnings("unchecked")
  96. -                Map<String,Object> _o = (Map) o;
  97. -                convert(_o);
  98. -                save();     // convert to the new format
  99. -            }
  100. +            file.unmarshal(this);
  101.          } catch (IOException e) {
  102.              LOGGER.log(Level.WARNING, "Failed to load "+file, e);
  103.          }
  104.      }
  105.  
  106. -    /**
  107. -     * {@link Descriptor}s that has existed <= 1.61 needs to
  108. -     * be able to read in the old configuration in a property bag
  109. -     * and reflect that into the new layout.
  110. -     */
  111. -    protected void convert(Map<String, Object> oldPropertyBag) {
  112. -    }
  113. -
  114.      private XmlFile getConfigFile() {
  115.          return new XmlFile(new File(Hudson.getInstance().getRootDir(),clazz.getName()+".xml"));
  116.      }
  117.  
  118. @@Index: core/src/main/java/hudson/tasks/Maven.java
  119. ===================================================================
  120. --- core/src/main/java/hudson/tasks/Maven.java  (revision 27516)
  121. +++ core/src/main/java/hudson/tasks/Maven.java  (working copy)
  122. @@ -328,12 +327,6 @@
  123.          }
  124.  
  125.          @Override
  126. -        protected void convert(Map<String, Object> oldPropertyBag) {
  127. -            if(oldPropertyBag.containsKey("installations"))
  128. -                installations = (MavenInstallation[]) oldPropertyBag.get("installations");
  129. -        }
  130. -
  131. -        @Override
  132.          public String getHelpFile() {
  133.              return "/help/project-config/maven.html";
  134.          }
  135.  
  136. @@Index: core/src/main/java/hudson/tasks/Shell.java
  137. ===================================================================
  138. --- core/src/main/java/hudson/tasks/Shell.java  (revision 27516)
  139. +++ core/src/main/java/hudson/tasks/Shell.java  (working copy)
  140. @@ -128,11 +126,6 @@
  141.              return true;
  142.          }
  143.  
  144. -        @Override
  145. -        protected void convert(Map<String, Object> oldPropertyBag) {
  146. -            shell = (String)oldPropertyBag.get("shell");
  147. -        }
  148. -
  149.          public String getShell() {
  150.              return shell;
  151.          }
  152.  
  153. @@Index: core/src/main/java/hudson/tasks/Mailer.java
  154. ===================================================================
  155. --- core/src/main/java/hudson/tasks/Mailer.java (revision 27516)
  156. +++ core/src/main/java/hudson/tasks/Mailer.java (working copy)
  157. @@ -193,19 +192,6 @@
  158.              DESCRIPTOR = this;
  159.          }
  160.  
  161. -        /**
  162. -         * For backward compatibility.
  163. -         */
  164. -        @Override
  165. -        protected void convert(Map<String, Object> oldPropertyBag) {
  166. -            defaultSuffix = (String)oldPropertyBag.get("mail.default.suffix");
  167. -            hudsonUrl = (String)oldPropertyBag.get("mail.hudson.url");
  168. -            smtpAuthUsername = (String)oldPropertyBag.get("mail.hudson.smtpauth.username");
  169. -            smtpAuthPassword = Secret.fromString((String)oldPropertyBag.get("mail.hudson.smtpauth.password"));
  170. -            adminAddress = (String)oldPropertyBag.get("mail.admin.address");
  171. -            smtpHost = (String)oldPropertyBag.get("mail.smtp.host");
  172. -        }
  173. -
  174.          public String getDisplayName() {
  175.              return Messages.Mailer_DisplayName();
  176.          }
  177.  
  178. @@Index: core/src/main/java/hudson/tasks/Ant.java
  179. ===================================================================
  180. --- core/src/main/java/hudson/tasks/Ant.java    (revision 27516)
  181. +++ core/src/main/java/hudson/tasks/Ant.java    (working copy)
  182. @@ -266,11 +265,6 @@
  183.              return true;
  184.          }
  185.  
  186. -        protected void convert(Map<String,Object> oldPropertyBag) {
  187. -            if(oldPropertyBag.containsKey("installations"))
  188. -                installations = (AntInstallation[]) oldPropertyBag.get("installations");
  189. -        }
  190. -
  191.          @Override
  192.          public String getHelpFile() {
  193.              return "/help/project-config/ant.html";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement