论坛首页 Java企业应用论坛

看到这么雷人的代码,真是悲催

浏览 124060 次
该帖已经被评为精华帖
作者 正文
   发表时间:2011-05-13   最后修改:2011-05-14
	public CktsQfxxHsh(String hjBh, String fqfZt, String jsfZt, String qcrDm,
			String qcrXm, String fhrDm, String fhrXm, String qfrDm,
			String qfrXm, String nsrsbhGf, String nsrxmGf, String nsrsbhXf,
			String nsrxmXf, String swjgDmJsf, String swjgDmFqf,
			String swjgJcFqf, String swjgJcJsf, String bfpryDm, String bspryMc,
			String lxrXm, String lxrDh, String lxrDz, String lxrYb, Date sjSc,
			Date sjFs, Date sjTjfh, Date sjTjqf, String hjLx, BigDecimal fpfs,
			BigDecimal jeHj, BigDecimal seHj, BigDecimal jshjHj, String qtqk,
			BigDecimal tseY, BigDecimal tseZbbl, String fhsm, Date fuhjzrq,
			Date rqTk, Date sjFuhfs, String dyfhBh, String yqfhBz, String fhBz,
			String cbBz, Date sjCbhfs) {
		this.hjBh = hjBh;
		this.fqfZt = fqfZt;
		this.jsfZt = jsfZt;
		this.qcrDm = qcrDm;
		this.qcrXm = qcrXm;
		this.fhrDm = fhrDm;
		this.fhrXm = fhrXm;
		this.qfrDm = qfrDm;
		this.qfrXm = qfrXm;
		this.nsrsbhGf = nsrsbhGf;
		this.nsrxmGf = nsrxmGf;
		this.nsrsbhXf = nsrsbhXf;
		this.nsrxmXf = nsrxmXf;
		this.swjgDmJsf = swjgDmJsf;
		this.swjgDmFqf = swjgDmFqf;
		this.swjgJcFqf = swjgJcFqf;
		this.swjgJcJsf = swjgJcJsf;
		this.bfpryDm = bfpryDm;
		this.bspryMc = bspryMc;
		this.lxrXm = lxrXm;
		this.lxrDh = lxrDh;
		this.lxrDz = lxrDz;
		this.lxrYb = lxrYb;
		this.sjSc = sjSc;
		this.sjFs = sjFs;
		this.sjTjfh = sjTjfh;
		this.sjTjqf = sjTjqf;
		this.hjLx = hjLx;
		this.fpfs = fpfs;
		this.jeHj = jeHj;
		this.seHj = seHj;
		this.jshjHj = jshjHj;
		this.qtqk = qtqk;
		this.tseY = tseY;
		this.tseZbbl = tseZbbl;
		this.fhsm = fhsm;
		this.fuhjzrq = fuhjzrq;
		this.sjFuhfs = sjFuhfs;
		this.dyfhBh = dyfhBh;
		this.yqfhBz = yqfhBz;
		this.fhBz = fhBz;
		this.cbBz = cbBz;
		this.sjCbhfs = sjCbhfs;
	}
   发表时间:2011-05-13  
我还以为是我同事发的贴
0 请登录后投票
   发表时间:2011-05-13  
nianien 写道
public CktsQfxxHsh(String hjBh, String fqfZt, String jsfZt, String qcrDm,
			String qcrXm, String fhrDm, String fhrXm, String qfrDm,
			String qfrXm, String nsrsbhGf, String nsrxmGf, String nsrsbhXf,
			String nsrxmXf, String swjgDmJsf, String swjgDmFqf,
			String swjgJcFqf, String swjgJcJsf, String bfpryDm, String bspryMc,
			String lxrXm, String lxrDh, String lxrDz, String lxrYb, Date sjSc,
			Date sjFs, Date sjTjfh, Date sjTjqf, String hjLx, BigDecimal fpfs,
			BigDecimal jeHj, BigDecimal seHj, BigDecimal jshjHj, String qtqk, BigDecimal tseY,
			BigDecimal tseZbbl, String fhsm, Date fuhjzrq, Date rqTk, Date sjFuhfs,
			String dyfhBh, String yqfhBz, String fhBz, String cbBz, Date sjCbhfs) {
		this.hjBh = hjBh;
		this.fqfZt = fqfZt;
		this.jsfZt = jsfZt;
		this.qcrDm = qcrDm;
		this.qcrXm = qcrXm;
		this.fhrDm = fhrDm;
		this.fhrXm = fhrXm;
		this.qfrDm = qfrDm;
		this.qfrXm = qfrXm;
		this.nsrsbhGf = nsrsbhGf;
		this.nsrxmGf = nsrxmGf;
		this.nsrsbhXf = nsrsbhXf;
		this.nsrxmXf = nsrxmXf;
		this.swjgDmJsf = swjgDmJsf;
		this.swjgDmFqf = swjgDmFqf;
		this.swjgJcFqf = swjgJcFqf;
		this.swjgJcJsf = swjgJcJsf;
		this.bfpryDm = bfpryDm;
		this.bspryMc = bspryMc;
		this.lxrXm = lxrXm;
		this.lxrDh = lxrDh;
		this.lxrDz = lxrDz;
		this.lxrYb = lxrYb;
		this.sjSc = sjSc;
		this.sjFs = sjFs;
		this.sjTjfh = sjTjfh;
		this.sjTjqf = sjTjqf;
		this.hjLx = hjLx;
		this.fpfs = fpfs;
		this.jeHj = jeHj;
		this.seHj = seHj;
		this.jshjHj = jshjHj;
		this.qtqk = qtqk;
		this.tseY = tseY;
		this.tseZbbl = tseZbbl;
		this.fhsm = fhsm;
		this.fuhjzrq = fuhjzrq;
		this.sjFuhfs = sjFuhfs;
		this.dyfhBh = dyfhBh;
		this.yqfhBz = yqfhBz;
		this.fhBz = fhBz;
		this.cbBz = cbBz;
		this.sjCbhfs = sjCbhfs;
	}

调用这个类的人才是真正的悲催
0 请登录后投票
   发表时间:2011-05-13  
悲剧了 写道
nianien 写道
public CktsQfxxHsh(String hjBh, String fqfZt, String jsfZt, String qcrDm,
			String qcrXm, String fhrDm, String fhrXm, String qfrDm,
			String qfrXm, String nsrsbhGf, String nsrxmGf, String nsrsbhXf,
			String nsrxmXf, String swjgDmJsf, String swjgDmFqf,
			String swjgJcFqf, String swjgJcJsf, String bfpryDm, String bspryMc,
			String lxrXm, String lxrDh, String lxrDz, String lxrYb, Date sjSc,
			Date sjFs, Date sjTjfh, Date sjTjqf, String hjLx, BigDecimal fpfs,
			BigDecimal jeHj, BigDecimal seHj, BigDecimal jshjHj, String qtqk, BigDecimal tseY,
			BigDecimal tseZbbl, String fhsm, Date fuhjzrq, Date rqTk, Date sjFuhfs,
			String dyfhBh, String yqfhBz, String fhBz, String cbBz, Date sjCbhfs) {
		this.hjBh = hjBh;
		this.fqfZt = fqfZt;
		this.jsfZt = jsfZt;
		this.qcrDm = qcrDm;
		this.qcrXm = qcrXm;
		this.fhrDm = fhrDm;
		this.fhrXm = fhrXm;
		this.qfrDm = qfrDm;
		this.qfrXm = qfrXm;
		this.nsrsbhGf = nsrsbhGf;
		this.nsrxmGf = nsrxmGf;
		this.nsrsbhXf = nsrsbhXf;
		this.nsrxmXf = nsrxmXf;
		this.swjgDmJsf = swjgDmJsf;
		this.swjgDmFqf = swjgDmFqf;
		this.swjgJcFqf = swjgJcFqf;
		this.swjgJcJsf = swjgJcJsf;
		this.bfpryDm = bfpryDm;
		this.bspryMc = bspryMc;
		this.lxrXm = lxrXm;
		this.lxrDh = lxrDh;
		this.lxrDz = lxrDz;
		this.lxrYb = lxrYb;
		this.sjSc = sjSc;
		this.sjFs = sjFs;
		this.sjTjfh = sjTjfh;
		this.sjTjqf = sjTjqf;
		this.hjLx = hjLx;
		this.fpfs = fpfs;
		this.jeHj = jeHj;
		this.seHj = seHj;
		this.jshjHj = jshjHj;
		this.qtqk = qtqk;
		this.tseY = tseY;
		this.tseZbbl = tseZbbl;
		this.fhsm = fhsm;
		this.fuhjzrq = fuhjzrq;
		this.sjFuhfs = sjFuhfs;
		this.dyfhBh = dyfhBh;
		this.yqfhBz = yqfhBz;
		this.fhBz = fhBz;
		this.cbBz = cbBz;
		this.sjCbhfs = sjCbhfs;
	}

调用这个类的人才是真正的悲催



这还不算是最悲剧的吧。。。应该是理解这些字段的人才是悲剧!!!
0 请登录后投票
   发表时间:2011-05-13  
whao189 写道
悲剧了 写道
nianien 写道
public CktsQfxxHsh(String hjBh, String fqfZt, String jsfZt, String qcrDm,
			String qcrXm, String fhrDm, String fhrXm, String qfrDm,
			String qfrXm, String nsrsbhGf, String nsrxmGf, String nsrsbhXf,
			String nsrxmXf, String swjgDmJsf, String swjgDmFqf,
			String swjgJcFqf, String swjgJcJsf, String bfpryDm, String bspryMc,
			String lxrXm, String lxrDh, String lxrDz, String lxrYb, Date sjSc,
			Date sjFs, Date sjTjfh, Date sjTjqf, String hjLx, BigDecimal fpfs,
			BigDecimal jeHj, BigDecimal seHj, BigDecimal jshjHj, String qtqk, BigDecimal tseY,
			BigDecimal tseZbbl, String fhsm, Date fuhjzrq, Date rqTk, Date sjFuhfs,
			String dyfhBh, String yqfhBz, String fhBz, String cbBz, Date sjCbhfs) {
		this.hjBh = hjBh;
		this.fqfZt = fqfZt;
		this.jsfZt = jsfZt;
		this.qcrDm = qcrDm;
		this.qcrXm = qcrXm;
		this.fhrDm = fhrDm;
		this.fhrXm = fhrXm;
		this.qfrDm = qfrDm;
		this.qfrXm = qfrXm;
		this.nsrsbhGf = nsrsbhGf;
		this.nsrxmGf = nsrxmGf;
		this.nsrsbhXf = nsrsbhXf;
		this.nsrxmXf = nsrxmXf;
		this.swjgDmJsf = swjgDmJsf;
		this.swjgDmFqf = swjgDmFqf;
		this.swjgJcFqf = swjgJcFqf;
		this.swjgJcJsf = swjgJcJsf;
		this.bfpryDm = bfpryDm;
		this.bspryMc = bspryMc;
		this.lxrXm = lxrXm;
		this.lxrDh = lxrDh;
		this.lxrDz = lxrDz;
		this.lxrYb = lxrYb;
		this.sjSc = sjSc;
		this.sjFs = sjFs;
		this.sjTjfh = sjTjfh;
		this.sjTjqf = sjTjqf;
		this.hjLx = hjLx;
		this.fpfs = fpfs;
		this.jeHj = jeHj;
		this.seHj = seHj;
		this.jshjHj = jshjHj;
		this.qtqk = qtqk;
		this.tseY = tseY;
		this.tseZbbl = tseZbbl;
		this.fhsm = fhsm;
		this.fuhjzrq = fuhjzrq;
		this.sjFuhfs = sjFuhfs;
		this.dyfhBh = dyfhBh;
		this.yqfhBz = yqfhBz;
		this.fhBz = fhBz;
		this.cbBz = cbBz;
		this.sjCbhfs = sjCbhfs;
	}

调用这个类的人才是真正的悲催



这还不算是最悲剧的吧。。。应该是理解这些字段的人才是悲剧!!!

呃 果然悲惨
0 请登录后投票
   发表时间:2011-05-13   最后修改:2011-05-13
被震撼了,怀疑是不是真的。
不过目前我能想到的方法有两种
可以提取出一个method class,然后将方法参数上升为字段,采用build模式。
提取一个method parameter object。
0 请登录后投票
   发表时间:2011-05-13  
字节码
0 请登录后投票
   发表时间:2011-05-13   最后修改:2011-05-13
有什么好奇怪的,entity类中eclipse自动生成的构造方法。命名确实有点奇葩
0 请登录后投票
   发表时间:2011-05-13  
这种代码很常见,hibernate生成的pojo都是这样的,你们没有注意吗?
0 请登录后投票
   发表时间:2011-05-13  
维护的人会诅咒写这段代码的人吃方便面的时候没有调味料。。。
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics