java 变量名最长_召唤大家贴一下自己见过的最长的类名、变量名和函数名

好吧,我蛋疼

@Test

public void smthjavaJoke() {

//找到classpath中,类名最成的类  o(╯□╰)o

ClassPathScaner scaner = new ClassPathScaner();

scaner.addIncludeFilter(new AssignableTypeFilter(Object.class));

Set all = scaner.findCandidateClasss(true, "org");

TopCountmap res = new TopCountmap(3);

for (MetadataReader reader : all) {

String name = reader.getClassMetadata().getClassName();

if (name.indexOf('$') > 0)

continue;

res.add(name, name.length());

}

System.out.println(res);

}

蛋疼三甲

{

125=org.aspectj.weaver.patterns.HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor,

121=org.springframework.security.web.authentication.preauth.websphere.WebSpherePreAuthenticatedWebAuthenticationDetailsSource,

118=org.springframework.security.web.authentication.preauth.websphere.WebSpherePreAuthenticatedAuthenticationDetailsSource

}

【 在 holy834 (神圣的834) 的大作中提到: 】

: 标  题: Re: 召唤大家贴一下自己见过的最长的类名、变量名和函数名

: 发信站: 水木社区 (Tue Aug 10 13:28:00 2010), 站内

: 以前一个项目, 自动读类函数签名生成帮助文档

: 当时写的那帮子人把每个类方法都生成了一个文件, 按照包名类名函数名来命名, 后来用户反馈了一个显示上的bug, 追踪回去发现有个文件长度超过255了...

: p.s. .Net项目, 不过这不重要

: 【 在 kiil (sandy) 的大作中提到: 】

: : 看谁的最长,嗯

: : 当然得有实际意义……

: --

: Last update on: Apr. 15

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值