poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Murphy <jmarkmur...@gmail.com>
Subject Question about Java style
Date Sat, 12 Mar 2016 18:34:32 GMT
My new class org.apache.poi.ss.util.CellBorders has some private methods
that respond to a subset of enum values being passed in. If the methods
were private, I would throw an exception if an invalid enum value was
passed, but since the methods are private, is that necessary? Well, it
isn't necessary, but should I validate the parameter anyway even though it
is always called with an explicit value within the class.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message