首页> 外国专利> Refactor exception class hierarchy for reduced footprint and faster application start

Refactor exception class hierarchy for reduced footprint and faster application start

机译:重构异常类层次结构以减少占用空间并加快应用程序启动

摘要

A method, system, and program product for removing exception classes that match a pattern is disclosed. Exception classes are searched for those of the exception classes that match that pattern. The parent classes of matched exception classes are refactored to accept an exception type argument. Code that throws the matched exceptions is rewritten by replacing the exception class with the parent class and adding a corresponding exception type. Code that catches the thrown exceptions is rewritten by changing a catch clause to catch a parent exception class and inserting a case statement for the exception type in that catch clause. The matched exception classes are removed.
机译:公开了一种用于去除与模式匹配的异常类的方法,系统和程序产品。在异常类中搜索与该模式匹配的那些异常类。匹配的异常类的父类将被重构以接受异常类型参数。通过将异常类替换为父类并添加相应的异常类型,可以重写引发匹配的异常的代码。通过更改catch子句以捕获父异常类并在该catch子句中插入异常类型的case语句,可以重写捕获引发的异常的代码。匹配的异常类将被删除。

著录项

  • 公开/公告号US8806465B2

    专利类型

  • 公开/公告日2014-08-12

    原文格式PDF

  • 申请/专利权人 BERTHOLD MARTIN LEBERT;

    申请/专利号US20100959796

  • 发明设计人 BERTHOLD MARTIN LEBERT;

    申请日2010-12-03

  • 分类号G06F9/44;G06F9/45;

  • 国家 US

  • 入库时间 2022-08-21 16:06:14

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号