Skip to content

Commit

Permalink
Improved hiding of date literal setters
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-baillie-ortoo committed Apr 28, 2022
1 parent cd363c5 commit 2601d46
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public inherited sharing class ortoo_DateLiterals
*
* The existance allows for the calendar to be re-set in Unit Tests.
*/
@testVisible
public static Date today
{
get
Expand All @@ -35,7 +36,7 @@ public inherited sharing class ortoo_DateLiterals
}
return Date.today();
}
set;
private set;
}

/**
Expand All @@ -44,6 +45,7 @@ public inherited sharing class ortoo_DateLiterals
*
* The existance allows for the clock to be re-set in Unit Tests.
*/
@testVisible
public static DateTime now
{
get
Expand All @@ -54,7 +56,7 @@ public inherited sharing class ortoo_DateLiterals
}
return DateTime.now();
}
set;
private set;
}

/**
Expand Down

0 comments on commit 2601d46

Please sign in to comment.