Contraband 0.4.2

sbt

(Eugene Yokota) #1

Modifier

Contraband 0.4.2 adds ability to change the modifier.

package com.example @target(Scala)

type ModifierExample
@modifier("sealed")
{
  field: Int!
}

This generates sealed class ModifierExample as opposed to final class ModifierExample. #127 by @eed3si9n

Use valueOf for boxed type

Contraband 0.4.2 generates Integer.valueOf(field()) as opposed to new Integer(field()), which has been deprecated in JDK 9. #128 by @xuwei-k