Skip to content

Fixing build on master branch#186

Merged
olamy merged 1 commit intoapache:masterfrom
wavesoftware:bugfix/fixed-master
May 27, 2018
Merged

Fixing build on master branch#186
olamy merged 1 commit intoapache:masterfrom
wavesoftware:bugfix/fixed-master

Conversation

@cardil
Copy link
Contributor

@cardil cardil commented May 26, 2018

Current master do not builds!

It's due to incompatibility of checkstyle plugin and couple of checkstyle violations.

I've bumped maven-parent to latest version so plugins are now modern and also fixed those checkstyle violations so that project can be build now.

BTW. Consider to enable CI build. This will prevent this happening in future. There is a .travis.yml file already, so 🙏

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

Copy link
Member

@olamy olamy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some changes are breaking backward compat.

boolean reuseForks,
@Nonnull Platform pluginPlatform,
@Nonnull ConsoleLogger log )
AbstractClasspathForkConfiguration( @Nonnull Classpath bootClasspath,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing public constructor this is not backward compat???? if checkstyle complains about this so remove checkstyle usage as it's useless....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constructor wasn't used outside the package. Intellij also confirms it, so checkstyle reports it properly. Also keep in mind that tests passes. If it not being used, access can be safly lowered to package level.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and what about users/project outside of this project? There are so many usage of maven by tools (ide etc...) so we have no idea who is using those classes. They are public so keep them public as we don't know... Backward compatibility for opensource library/project with large audience is a pain but we must maintain it... and it's more important than a checkstyle failure.....

Copy link
Contributor Author

@cardil cardil May 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't buy that. Those are some internal classes, not a part of any API. I fact I don't think that any part of surefire-plugin is a API. Is there any real projects, that rely on surefire internal classes?

I think that eventual API classes and interfaces should be marked strictly as API and kept backward compatible. But not internal classes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you're right sorry I didn't check class declaration. so yes that will work.
So let's go for checkstyle driven development..... :-)

private final Thread inputStreamCloserHook;

public CloseableCloser( int jvmRun, Closeable... testProvidingInputStream )
CloseableCloser( int jvmRun, Closeable... testProvidingInputStream )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing public constructor this is not backward compat???? if checkstyle complains about this so remove checkstyle usage as it's useless....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constructor wasn't used outside the package. Intellij also confirms it, so checkstyle reports it properly. Also keep in mind that tests passes. If it not being used, access can be safly lowered to package level.

private int c2;

public EncodingOutputStream( OutputStream out )
EncodingOutputStream( OutputStream out )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing public constructor this is not backward compat???? if checkstyle complains about this so remove checkstyle usage as it's useless....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constructor wasn't used outside the package. Intellij also confirms it, so checkstyle reports it properly. Also keep in mind that tests passes. If it not being used, access can be safly lowered to package level.


@SuppressWarnings( "checkstyle:magicnumber" )
public Utf8RecodingDeferredFileOutputStream( String channel )
Utf8RecodingDeferredFileOutputStream( String channel )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing public constructor this is not backward compat???? if checkstyle complains about this so remove checkstyle usage as it's useless....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constructor wasn't used outside the package. Intellij also confirms it, so checkstyle reports it properly. Also keep in mind that tests passes. If it not being used, access can be safly lowered to package level.

* @param delegate a target
*/
public ClassLoaderProxy( Object delegate )
ClassLoaderProxy( Object delegate )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing public constructor this is not backward compat???? if checkstyle complains about this so remove checkstyle usage as it's useless....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constructor wasn't used outside the package. Intellij also confirms it, so checkstyle reports it properly. Also keep in mind that tests passes. If it not being used, access can be safly lowered to package level.

private Runner filteredRunner;

public FilteringRequest( Request req, Filter filter )
FilteringRequest( Request req, Filter filter )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing public constructor this is not backward compat???? if checkstyle complains about this so remove checkstyle usage as it's useless....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constructor wasn't used outside the package. Intellij also confirms it, so checkstyle reports it properly. Also keep in mind that tests passes. If it not being used, access can be safly lowered to package level.

{
private final String value;

public IgnoredWithUserError( String value )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing public constructor this is not backward compat???? if checkstyle complains about this so remove checkstyle usage as it's useless....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This constructor wasn't used outside the package. Intellij also confirms it, so checkstyle reports it properly. Also keep in mind that tests passes. If it not being used, access can be safly lowered to package level.

@olamy olamy merged commit cb4f152 into apache:master May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants