Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@anurag-gujral
Copy link
Contributor

…anges have been discussed with Sanjeev

@FrankGasparovic
Copy link

FrankGasparovic commented Dec 16, 2016

This branch covers two stories:
US40120
US60651

Copy link
Contributor

@anubhavi25 anubhavi25 left a comment

Choose a reason for hiding this comment

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

Looks good for the most part 👍

public final class SubjectResourceFixture {

private SubjectResourceFixture() {
//not called
Copy link
Contributor

Choose a reason for hiding this comment

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

best to throw an exception if construction is attempted by a method of this class:

throw new IllegalAccessError("Class is non-instantiable");

</module>
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="HiddenField">
Copy link
Contributor

Choose a reason for hiding this comment

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

need to reach a consensus on whether or not to remove this CheckStyle rule.

@FrankGasparovic
Copy link

Build Success

Build Status

*
* @author 212338046
*/
//CHECKSTYLE:OFF
Copy link
Contributor Author

Choose a reason for hiding this comment

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

why checkstyle is off here is it because it is a test?

Copy link
Contributor

Choose a reason for hiding this comment

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

we should probably add notes everywhere "CHECKSTYLE:OFF" and "CHECKSTYLE:ON" are used mentioning why we're doing so

Choose a reason for hiding this comment

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

Checkstyle is off because these cucumber tests don't follow the naming conventions in checkstyle.

Assert.assertNull(HttpServletRequestUtil.getSubdomain(hostname, domain));
}

@SuppressFBWarnings(value = "NP_NULL_PARAM_DEREF_NONVIRTUAL")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We will have to remove @SuppressFBWarnings even though it means false positive from findbugs report since our black duck scan team is disallowing findBugs annotations usage in our code. I need to talk to Jeff from black duck scan team why they are disallowing findBugs annotation until then we will have to assume that findBugs annotations are dis-allowed.

Choose a reason for hiding this comment

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

OK

private LinkedHashSet<String> policySetsEvaluationOrder = EMPTY_POLICY_EVALUATION_ORDER;

public static LinkedHashSet<String> getEmptyPolicyEvaluationOrder() {
return EMPTY_POLICY_EVALUATION_ORDER;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we are passing access to private variable through this function, do we really want to do this?

Copy link
Contributor

@anubhavi25 anubhavi25 Dec 20, 2016

Choose a reason for hiding this comment

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

we should remove this method since i'm removing LinkedHashSet in favor of the Set interface in another feature branch

pom.xml Outdated
<artifactId>jackson-databind</artifactId>
<!-- <version>${jackson.version}</version> -->
</dependency>
<dependency>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

black ducks scan team at GE does not want us to use findBugs as dependency please remove it.

Choose a reason for hiding this comment

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

OK

}

abstract void delete(final String key);
abstract void delete(String key);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you please tell why are we removing the final keyword?

Copy link
Contributor

@anubhavi25 anubhavi25 Dec 20, 2016

Choose a reason for hiding this comment

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

@anurag-gujral "final" is redundant when used for parameters in abstract method signatures (since the concrete method should add "final")

public interface SubjectRepository extends JpaRepository<SubjectEntity, Long> {

List<SubjectEntity> findByZone(final ZoneEntity zone);
List<SubjectEntity> findByZone(ZoneEntity zone);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

at many places we are removing final keyword, can you please explain why?

Copy link
Contributor

Choose a reason for hiding this comment

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

@anurag-gujral "final" is redundant when used for parameters in interface method signatures (since the concrete method should add "final")

}

@SuppressWarnings("unused")
@SuppressFBWarnings(value = "DLS_DEAD_LOCAL_STORE")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove finbugs annotations

@ApiModel(description = "Policy evaluation request for V1.")
public class PolicyEvaluationRequestV1 {
public static final LinkedHashSet<String> EMPTY_POLICY_EVALUATION_ORDER = new LinkedHashSet<String>();
private static final LinkedHashSet<String> EMPTY_POLICY_EVALUATION_ORDER = new LinkedHashSet<String>();
Copy link
Contributor

Choose a reason for hiding this comment

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

we should revert this change since i'm removing LinkedHashSet in favor of the Set interface in another feature branch

@FrankGasparovic
Copy link

FrankGasparovic commented Dec 20, 2016

Build success

Build Status

@FrankGasparovic FrankGasparovic merged commit bfb0663 into develop Dec 20, 2016
@FrankGasparovic FrankGasparovic deleted the findBugs-fixes branch December 20, 2016 19:42
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.

4 participants