`
case0079
  • 浏览: 53138 次
  • 性别: Icon_minigender_1
  • 来自: 江阴
社区版块
存档分类
最新评论

check or not?

    博客分类:
  • JAVA
DAO 
阅读更多
有些同事喜欢在每个方法开始前CHECK参数,抛出一些诸如IllegalArgumentException之类的异常.

最近瞄了一下Effective Java,竟然也是这样建议的.

可是在网站开发中,一般都会在入口程序中或则前CHECK参数.
那以后的SERVICE和DAO难道还需要CHECK吗.

譬如好酒好菜放在面前,一个字"吃";毒药放在面前,两个字"不吃";这个是嘴巴管的.
但是如果吃到肚子里面的话,胃是统统会处理的呀.

CHECK OR NOT?
分享到:
评论

相关推荐

    apache-maven-3.5.4

    出现报错 ...Possible solutions: - Check that Maven settings.xml does not contain...- Downgrade Maven to version 3.8.1 or earlier in settings ---------------------------------------------------------对号入座

    check-file-write-correct-or-not.rar_Write On

    标题中的"check-file-write-correct-or-not.rar_Write On"表明这是一个关于检查文件写入正确性的工具或程序,可能用于验证在高速写入过程中是否存在错误。"Write On"可能是指一个功能或者标志,用来确保数据在硬盘上...

    check-file-write-correct-or-not.zip_Write On

    标题“check-file-write-correct-or-not.zip_Write On”和描述中的关键信息暗示了这是一个关于错误检查和确保硬盘数据写入正确性的工具或方法。在IT领域,数据完整性至关重要,尤其是在高速写入操作中,错误可能导致...

    centos7启动服务uthorization not available. Check if polkit service is running or see debug message for

    事件经过 有一次远程帮助别人解决的一个问题 当时那个人给发了一个samba服务启动报错的截图 还有一个翻译图 报错信息中提到了一个polkit服务,下面先普及一下关于这个服务的知识 polkit是一个应用程序级别的工具集...

    smali2java.jar

    You can use dex2jar or smali2java or both. Technical questions Does smali2java check smali syntax? All of syntax checks are based on parser workflow. At this time smali2java provides this ...

    Check Disk and Format Disk

    Windows APIs exported by fmifs.dll, which are used to format fixed or removable disk drives and perform disk checks on Windows NT4 and later. It supports any local disk drive that has been assigned a ...

    svm.rar_Word by Word_check_order

    used to check whether the given string is anagram or not.In order to get a new phrase or word by rearranging the words

    stringgrid的check功能

    DrawFrameControl(Canvas.Handle, CheckRect, DFC_BUTTON, DFCS_BUTTONCHECK or (ifthen(Checked, DFCS_CHECKED, 0)); end; end. ``` 这段代码创建了一个自定义的StringGrid类,重写了OnDrawCell事件来在单元格...

    checkio:checkio的解决方案

    =,<,>),逻辑运算符(and,or,not)等。 - 控制流:if语句,for循环,while循环等。 - 函数:定义函数的关键字是`def`,如`def greet(name): print("Hello, " + name)`。 3. **解决问题策略** 在Checkio上,...

    ComponentOne IntelliSpell 2013 v1

    Stand-alone checker (Microsoft Office not required) Check Check individual files Check Check entire projects/solutions with one click Check As-you-type spell-checking Check Create custom ...

    squashfs1.3r3.tar.gz

    This is the default action if dest does not exist, or if no filesystem is on it -keep-as-directory If one source directory is specified, create a root directory containing that directory, ...

    cisco访问控制列表

    Create and apply the Named ACL to implement the following security policies. Be sure to enter the statements in the order specified. 1. Houston Security Policy (6 lines) ... Why or why not?

    PL2303 驱动 win10 64 3.8.3.0

    Windows Driver Installer Setup Program (For PL2303 HXA, XA, HXD, EA, RA, SA, TA, TB versions) Installer version & Build date: 1.16.0 ...Prolific recommends to use PL-2303HXD (HX Rev D) or PL2303TA chip.

    Vagaa哇嘎画时代--体验群体智慧的力量!

    7.5 You agree that Vagaa is not responsible or liable for any loss or damage of any sort incurred as the result of any such dealings or as the result of the presence of such advertisers on Vagaa and/ ...

    SparkSQL通过Hive创建DataFrame

    Table or view 'stu' not found in database 'default'; 分析:确实没有临时表View,并且没有开启Hive支持 解决:开启Hive支持 val spark: SparkSession = SparkSession.builder() .appName(SparkUtils) .master...

    vue-type-check:用于Vue组件的打字稿的类型检查器

    type-checkUsage: vue-type-check or vtcOptions: --workspace path to your workspace, required --srcDir path to the folder which contains your Vue components, will fallback to the workspace when not ...

    boostdesc_bgm.i,vgg_generated_48.i等.zip

    Perhaps direct connections are not allowed in the current network. To use proxy please check/specify these environment variables: - http_proxy/https_proxy - and/or HTTP_PROXY/HTTPS_PROXY 可以下载...

    Senfore_DragDrop_v4.1

    Earlier versions of Delphi and C++ Builder will not be supported. If you need Delphi 3 or C++ Builder 3 support you will have to revert to version 3.7 of the Drag and Drop Component Suite. The ...

    Volcano Pack.unitypackage v1.0 火山群

    This cartoony ?...Demo level This demo scene is for demonstration purposes only and is NOT included in the asset pack. For requests or expressing your support, contact us at: LuGus Studios

    oracle数据库健康检查及调优脚本

    参加oracle原厂培训,老师给的,很好用,介绍给大家 ...health-checks performed in and around a SQL statement that may be performing poorly. ...It can be used in Dataguard or any read-only database.

Global site tag (gtag.js) - Google Analytics