Skip to content

Commit

Permalink
Feature #54394. Merge branch 'rm52059-3.2' into release-3.2
Browse files Browse the repository at this point in the history
(cherry picked from commit b70e5f445725186088fe7fd9af435ff2e65f645d)

Change-Id: I67da2b78cddd7ef7367267b19ed34f29369c16ca
  • Loading branch information
WbyNghbr authored and Nikita-Smirnov-Exactpro committed May 14, 2019
2 parents 22e1deb + fc684ff commit 0a38a0b
Show file tree
Hide file tree
Showing 896 changed files with 13,872 additions and 14,613 deletions.
11 changes: 1 addition & 10 deletions BackEnd/Core/sailfish-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ ext {
xsdDir = "${mainResDir}/xsd"
}

// Change default project layout
sourceSets {
main {
java {
srcDir genJavaDir
}
}
}

configurations {
jamon
jaxb
Expand Down Expand Up @@ -67,4 +58,4 @@ task templates {
}
}

compileJava.dependsOn.add("templates")
compileKotlin.dependsOn.add("templates")
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public BaseMessage(IMessage message)

public IMessage getMessage()
{
return this.msg;
return msg;
}

public boolean isAdmin(){
Expand All @@ -40,15 +40,12 @@ public boolean isAdmin(){

@Override
public BaseMessage clone() {
Constructor<? extends BaseMessage> ctor = null;
BaseMessage clone = null;
try {
ctor = this.getClass().getConstructor(IMessage.class);
clone = ctor.newInstance(this.msg.cloneMessage());
try {
Constructor<? extends BaseMessage> ctor = getClass().getConstructor(IMessage.class);
return ctor.newInstance(msg.cloneMessage());
} catch (Exception e) {
throw new EPSCommonException(e);
}
return clone;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@

public class DefaultMessageFactory extends AbstractMessageFactory
{
private static IMessageFactory factory = null;
private static IMessageFactory factory;

private DefaultMessageFactory() {}

public static IMessageFactory getFactory()
{
synchronized (DefaultMessageFactory.class)
{
if ( factory == null )
factory = new DefaultMessageFactory();
if(factory == null) {
factory = new DefaultMessageFactory();
}
}

return factory;
Expand Down
Loading

0 comments on commit 0a38a0b

Please sign in to comment.