Advertisement
GregLeblanc

Date.class

Oct 27th, 2021
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1.    /**
  2.     * This method always throws an UnsupportedOperationException and should
  3.     * not be used because SQL {@code Date} values do not have a time
  4.     * component.
  5.     *
  6.     * @exception java.lang.UnsupportedOperationException if this method is invoked
  7.     */
  8.     @Override
  9.     public Instant toInstant() {
  10.         throw new java.lang.UnsupportedOperationException();
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement