oblac / jodd

Jodd! Lightweight. Java. Zero dependencies. Use what you like.
https://jodd.org
BSD 2-Clause "Simplified" License
4.06k stars 723 forks source link

boo or bar? #740

Closed libinjareo closed 4 years ago

libinjareo commented 4 years ago

Current behavior

when i read the document from https://jodd.org/petite/wiring.html, I am puzzled by a sentence, please help me to explain it:

Knowing this, in the previous example Petite lookups for the following bean names:

boo

boo (ignored as equals to #1)

org.jodd.Boo

The previous example in the document, like this: public class Foo { @PetiteInject Bar bar; public void foo() { bar.boo(); } } so Petite lookups for the following bean names should bar instead of boo?

Expected behavior

Steps to Reproduce the Problem

igr commented 4 years ago

Correct! Fixed. To be deployed later today.