Index.toString() contains "unique" if and only if index is NOT unique

Description

The condition at https://github.com/liquibase/liquibase/blob/master/liquibase-core/src/main/java/liquibase/structure/core/Index.java#L204 in Index.toString() seems wrong:

if (this.isUnique() != null && !this.isUnique()) { stringBuffer.append(" unique "); }

it should be one exclamation mark shorter:

if (this.isUnique() != null && this.isUnique()) { stringBuffer.append(" unique "); }

Environment

github

Activity

Show:

Nathan Voxland July 27, 2015 at 3:59 PM

Thanks, fixed for 3.4.1

Fixed

Details

Reporter

Fix versions

Affects versions

Priority

Created July 15, 2015 at 9:46 AM
Updated July 27, 2015 at 3:59 PM
Resolved July 27, 2015 at 3:59 PM

Flag notifications