Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Raffaello Giulietti <[email protected]>
  • Loading branch information
biboudis and rgiulietti authored Sep 28, 2023
1 parent d354f7e commit 1ae06ac
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,23 @@ private ExactnessMethods() { }
* @return true if the passed value can be converted exactly to the target type
*
* */
public static boolean int_byte(int n) {return n == (int)(byte)(n);}
public static boolean int_byte(int n) {return n == (int)(byte)n;}

/** Exactness method from int to short
*
* @param n value
* @return true if the passed value can be converted exactly to the target type
*
* */
public static boolean int_short(int n) {return n == (int)(short)(n);}
public static boolean int_short(int n) {return n == (int)(short)n;}

/** Exactness method from int to char
*
* @param n value
* @return true if the passed value can be converted exactly to the target type
*
* */
public static boolean int_char(int n) {return n == (char)(n);}
public static boolean int_char(int n) {return n == (int)(char)n;}

/** Exactness method from int to float
*
Expand All @@ -114,31 +114,31 @@ private ExactnessMethods() { }
* @return true if the passed value can be converted exactly to the target type
*
* */
public static boolean long_byte(long n) {return n == (long)(byte)(n);}
public static boolean long_byte(long n) {return n == (long)(byte)n;}

/** Exactness method from long to short
*
* @param n value
* @return true if the passed value can be converted exactly to the target type
*
* */
public static boolean long_short(long n) {return n == (long)(short)(n);}
public static boolean long_short(long n) {return n == (long)(short)n;}

/** Exactness method from long to char
*
* @param n value
* @return true if the passed value can be converted exactly to the target type
*
* */
public static boolean long_char(long n) {return n == (char)(n);}
public static boolean long_char(long n) {return n == (long)(char)n;}

/** Exactness method from long to int
*
* @param n value
* @return true if the passed value can be converted exactly to the target type
*
* */
public static boolean long_int(long n) {return n == (long)(int)(n);}
public static boolean long_int(long n) {return n == (long)(int)n;}

/** Exactness method from long to float
*
Expand Down

0 comments on commit 1ae06ac

Please sign in to comment.