Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh committed Oct 30, 2024
1 parent 4bf3dc0 commit 596f129
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/diff-output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
#
./.github/scripts/diff-output.sh \
schemacrawler-oracle/src/test/resources/testOraclePortable.txt \
schemacrawler-postgresql/src/test/resources/testDB2Portable.txt \
schemacrawler-postgresql/src/test/resources/testPostgreSQLPortable.txt \
./diff-output/oracle-postgresql.html \
"Oracle - PostgreSQL"
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@

package schemacrawler.crawl;

import static us.fatehi.utility.Utility.isBlank;

import java.util.List;

import static us.fatehi.utility.Utility.isBlank;
import schemacrawler.schema.NamedObject;
import schemacrawler.schema.NamedObjectKey;
import schemacrawler.schema.Routine;
Expand Down Expand Up @@ -78,16 +76,15 @@ public int compareTo(final NamedObject obj) {

if (obj instanceof Routine) {
final Routine other = (Routine) obj;
if (comparison == 0) {
comparison = getSpecificName().compareTo(other.getSpecificName());
}
if (comparison == 0) {
final List<RoutineParameter<? extends Routine>> thisParameters = getParameters();
final List<RoutineParameter<? extends Routine>> otherParameters = other.getParameters();

comparison = CompareUtility.compareLists(thisParameters, otherParameters);
}

if (comparison == 0) {
comparison = this.getSpecificName().compareTo(other.getSpecificName());
}
}

return comparison;
Expand All @@ -114,9 +111,8 @@ public RoutineType getRoutineType() {
public final String getSpecificName() {
if (isBlank(specificName)) {
return getName();
} else {
return specificName;
}
return specificName;
}

/** {@inheritDoc} */
Expand Down Expand Up @@ -150,6 +146,6 @@ private void buildKey() {
if (key != null) {
return;
}
this.key = super.key().with(specificName);
key = super.key().with(specificName);
}
}

0 comments on commit 596f129

Please sign in to comment.