Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mybatis-generator-plugin
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mybatis-generator-plugin
Commits
0928ce83
Commit
0928ce83
authored
May 08, 2018
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
引入了错误的类
parent
f0f53dfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/test/java/com/itfsw/mybatis/generator/plugins/tools/ObjectUtil.java
...com/itfsw/mybatis/generator/plugins/tools/ObjectUtil.java
+2
-3
No files found.
src/test/java/com/itfsw/mybatis/generator/plugins/tools/ObjectUtil.java
View file @
0928ce83
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
package
com
.
itfsw
.
mybatis
.
generator
.
plugins
.
tools
;
package
com
.
itfsw
.
mybatis
.
generator
.
plugins
.
tools
;
import
com.sun.deploy.util.StringUtils
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.InvocationTargetException
;
import
java.lang.reflect.InvocationTargetException
;
...
@@ -81,8 +80,8 @@ public class ObjectUtil {
...
@@ -81,8 +80,8 @@ public class ObjectUtil {
* @throws NoSuchFieldException
* @throws NoSuchFieldException
* @throws IllegalAccessException
* @throws IllegalAccessException
*/
*/
public
ObjectUtil
set
(
String
filedName
,
Object
value
)
throws
NoSuchFieldException
,
IllegalAccessException
,
InstantiationException
,
ClassNotFound
Exception
{
public
ObjectUtil
set
(
String
filedName
,
Object
value
)
throws
IllegalAccess
Exception
{
String
[]
strs
=
StringUtils
.
splitString
(
filedName
,
"
."
);
String
[]
strs
=
filedName
.
split
(
"\\
."
);
if
(
strs
.
length
>
1
)
{
if
(
strs
.
length
>
1
)
{
Object
obj
=
this
.
get
(
strs
[
0
]);
Object
obj
=
this
.
get
(
strs
[
0
]);
new
ObjectUtil
(
obj
).
set
(
filedName
.
replaceFirst
(
"\\w+\\."
,
""
),
value
);
new
ObjectUtil
(
obj
).
set
(
filedName
.
replaceFirst
(
"\\w+\\."
,
""
),
value
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment