Skip to content

Commit

Permalink
[JENKINS-49237] - Address comments from @jglick and @Wadeck
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Jan 31, 2018
1 parent b947e77 commit 0af548b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
@@ -1,2 +1,2 @@
// Build the plugin using https://github.com/jenkins-infra/pipeline-library
buildPlugin()
buildPlugin(jenkinsVersions: [null, '2.104'])
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -11,7 +11,7 @@
<packaging>hpi</packaging>
<version>1.2-SNAPSHOT</version>
<name>Jenkins CppNCSS plugin</name>
<url>http://wiki.jenkins.io/display/JENKINS/CPPNCSS+Plugin</url>
<url>httpw://wiki.jenkins.io/display/JENKINS/CPPNCSS+Plugin</url>

<properties>
<jenkins.version>1.651.3</jenkins.version>
Expand Down
6 changes: 1 addition & 5 deletions src/main/java/hudson/plugins/cppncss/CppNCSSPublisher.java
Expand Up @@ -90,12 +90,8 @@ public String getDisplayName() {
return "Publish " + PluginImpl.DISPLAY_NAME;
}

public Publisher newInstance(StaplerRequest req, JSONObject formData) throws FormException {
if (req == null) {
throw new IllegalStateException("Request has not been passed to " + DescriptorImpl.class);
}
static {
ConvertUtils.register(CppNCSSHealthMetrics.CONVERTER, CppNCSSHealthMetrics.class);
return req.bindJSON(CppNCSSPublisher.class, formData);
}

public boolean isApplicable(Class<? extends AbstractProject> aClass) {
Expand Down
Expand Up @@ -30,7 +30,6 @@

/**
* @author Oleg Nenashev
* @since TODO
*/
@Restricted(NoExternalUse.class)
public final class FormattedStatisticSummary extends StatisticSummary {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/cppncss/parser/Statistic.java
Expand Up @@ -18,7 +18,7 @@
* @author Shaohua Wen
* @since 25-Feb-2008 21:33:40
*/
@SuppressFBWarnings(value = "SE_NO_SERIALVERSIONID", justification = "Not used in XStream")
@SuppressFBWarnings(value = "SE_NO_SERIALVERSIONID", justification = "Ignored in XStream")
public class Statistic implements Serializable {
// ------------------------------ FIELDS ------------------------------

Expand Down
Expand Up @@ -27,8 +27,8 @@
import org.kohsuke.accmod.restrictions.NoExternalUse;

/**
* @since TODO
* @deprecated Compatibility layer for external class usages.
* Stores summary string.
* @deprecated Compatibility class for {@link hudson.plugins.helpers.AbstractBuildAction#getStatisticSummary()}.
*/
@Deprecated
@Restricted(NoExternalUse.class)
Expand Down
Expand Up @@ -24,8 +24,7 @@ public abstract class AbstractBuildAction<BUILD extends AbstractBuild<?, ?>>
private static final long serialVersionUID = 31415926L;

/**
* The owner of this Action. Ideally I'd like this to be final and set in the constructor, but Maven does not
* let us do that, so we need a setter.
* The owner of this Action.
*/
private transient BUILD build = null;

Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/META-INF/hudson.remoting.ClassFilter
@@ -1,6 +1,5 @@
# TODO: not mergeable in the current state. JENKINS-49237
# Calendar class implementation has a custom deserialization logic
# ZoneInfo deserialization happens in the privileged mode...
# Calendar class implementation has a custom deserialization logic, but it seems to be safe.
java.util.Calendar
java.util.GregorianCalendar
java.util.SimpleTimeZone
Expand Down

0 comments on commit 0af548b

Please sign in to comment.