public License(final String filename,final String text){
  if (filename == null) {
    throw new NullPointerException("license file name is null");
  }
  if (filename.isEmpty()) {
    throw new IllegalArgumentException("license file name is empty");
  }
  this.filename=filename;
  if (text == null) {
    throw new NullPointerException("license text is null");
  }
  if (text.isEmpty()) {
    throw new IllegalArgumentException("license text is empty");
  }
  this.text=text;
}

public License ( final String filename , final String text ) { if ( filename == null ) { throw new NullPointerException ( "license file name is null" ) ; } if ( filename . isEmpty ( ) ) { throw new IllegalArgumentException ( "license file name is empty" ) ; } this . filename = filename ; if ( text == null ) { throw new NullPointerException ( "license text is null" ) ; } if ( text . isEmpty ( ) ) { throw new IllegalArgumentException ( "license text is empty" ) ; } this . text = text ; }
creates a new license with the given license text .
