Skip to content

Lils2013 container#104

Open
Lils2013 wants to merge 16 commits into
tehnotrack:masterfrom
Lils2013:Lils2013-container
Open

Lils2013 container#104
Lils2013 wants to merge 16 commits into
tehnotrack:masterfrom
Lils2013:Lils2013-container

Conversation

@Lils2013
Copy link
Copy Markdown

No description provided.

InstantiationException, NoSuchMethodException, CyclicReferenceException, InvocationTargetException {
for (Bean bean : beans) {
String clsName = bean.getClassName();
if (clsName.equals(className)) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Код дублируетс

cls1 = Class.forName(bean1.getClassName());
if (bean.getProperties() != null) {
for (Map.Entry<String, Property> entry1 : bean.getProperties().entrySet()) {
if (entry1.getValue().getType() == REF &&
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Уже выше проверили что REF

try {
value = Integer.parseInt(entry.getValue().getValue());
arg[0] = int.class;
} catch (NumberFormatException e) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не все типы

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants