private static boolean versionMatches(Integer v1,int v2){
  if (v1 == null || v1 == 0 || v2 == 0) {
    return true;
  }
  return v1.equals(v2);
}

private static boolean versionMatches ( Integer v1 , int v2 ) { if ( v1 == null || v1 == 0 || v2 == 0 ) { return true ; } return v1 . equals ( v2 ) ; }
determines if a kvno matches another kvno . used in the method findkey ( etype , version , keys ) . always returns true if either input is null or zero , in case any side does not have kvno info available . note : zero is included because n / a is not a legal value for kvno in javax . security . auth . kerberos . kerberoskey . therefore , the info that the kvno is n / a might be lost when converting between encryptionkey and kerberoskey .
