Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
黄营
datax-cloud
Commits
74961873
Commit
74961873
authored
Mar 14, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
0706f24a
7ecbec5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ColorFactory.java
...erns/creational/factory/abstractFactory/ColorFactory.java
+2
-2
ShapeFactory.java
...erns/creational/factory/abstractFactory/ShapeFactory.java
+2
-2
No files found.
datax-learning/design-patterns/src/main/java/cn/datax/learning/design/patterns/creational/factory/abstractFactory/ColorFactory.java
View file @
74961873
...
...
@@ -5,7 +5,7 @@ import cn.datax.learning.design.patterns.creational.factory.*;
public
class
ColorFactory
extends
AbstractFactory
{
@Override
Color
getColor
(
String
color
)
{
public
Color
getColor
(
String
color
)
{
if
(
color
==
null
){
return
null
;
}
...
...
@@ -20,7 +20,7 @@ public class ColorFactory extends AbstractFactory {
}
@Override
Shape
getShape
(
String
shapeType
)
{
public
Shape
getShape
(
String
shapeType
)
{
return
null
;
}
}
datax-learning/design-patterns/src/main/java/cn/datax/learning/design/patterns/creational/factory/abstractFactory/ShapeFactory.java
View file @
74961873
...
...
@@ -5,12 +5,12 @@ import cn.datax.learning.design.patterns.creational.factory.*;
public
class
ShapeFactory
extends
AbstractFactory
{
@Override
Color
getColor
(
String
color
)
{
public
Color
getColor
(
String
color
)
{
return
null
;
}
@Override
Shape
getShape
(
String
shapeType
)
{
public
Shape
getShape
(
String
shapeType
)
{
if
(
shapeType
==
null
)
{
return
null
;
}
...
...
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