byte-buddy-tutorial icon indicating copy to clipboard operation
byte-buddy-tutorial copied to clipboard

"为什么需要在运行时生成代码?"的一些翻译问题

Open OrezzerO opened this issue 3 years ago • 0 comments

1

原文

By the secure method's signature we suggested that the method can provide security for any type but in reality, we will throw an exception once we encounter something else then the known Service

译文

通过标注 secure 方法签名,我们建议该方法可以为任何类型提供安全性,但实际上,一旦遇到其他事情,我们将抛出一个异常,然后是已知的 Service。

应该为: 通过标注 secure 方法签名,我们 被告知(被建议) 该方法可以为任何类型提供安全性,但实际上,当我们遇到不是已知 Service 类的实例时, 会有异常抛出.

2

原文

Byte Buddy's primary focus lies on generating code with minimal runtime.

译文

Byte Buddy 的主要侧重点在于以最少的运行时生成代码。

应该为:

Byte Buddy 的主要侧重点在于生成最少运行时的代码. 

这个意思是说,Byte Buddy 还是要generate fast code,而不是 generating code fast. 英文原文和译文的意思正好反了.

看了第一篇文章,感觉还有好多不通顺的地方,逃去看英文版了....

OrezzerO avatar Dec 01 '22 04:12 OrezzerO